Это видео недоступно.
Сожалеем об этом.
How to Teleport Players to a Different Roblox Game - Roblox Studio Tutorial
HTML-код
- Опубликовано: 16 авг 2024
- #RobloxStudio #Teleportation
In this video I show you how to create a teleport block that can teleport you to a different Roblox game! This is a great way of connecting multiple games that you have created or separating out large maps into individual games that players can teleport between. This is a basic version of the script and can be customized as needed!
If you are using the link to the code below please show your support by subscribing!
Link to Code
www.mrmichaels...
»Join the Discord Server!
/ discord
Tips:
Make sure both games are published and you own both. It may work for some games not owned by you, but most block this.
Allow Teleports: Go to game settings under home tab, go to security, Allow third party teleports.
How to test: 3:27
Get game ID: 1:30
Here is a version of the script that has a cooldown period then allows additional teleports.
local telePart = script.Parent
local TeleportService = game:GetService('TeleportService')
local placeID = 5020048423
--replace this part
local canTeleport = true
local function otherGame(otherPart)
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player and canTeleport then
canTeleport = false
TeleportService:Teleport(placeID, player)
wait(15) --cooldown time
canTeleport = true
end
end
telePart.Touched:Connect(otherGame)
It keeps crashing when i step on the teleporter what do i do?
where is game settings
@DiggyDoggy XDDDDDDDDDDDDDDDDDDDDDDDDDDD
does this work with places inside your game? i have been searching for one that teleports between places but they are all outdated or only teleport bewtween games, and I dont know if it works for places too.
Thanks!
I tried this same tutorial many times, and it didin't work. But somehow just tried for the last time, and it worked. I have NO IDEA how it happened but thank you.
This man's an underrated youtuber. Keep up the great work! And also upload more great content like this!
@Luukeyz ?
Thx for the helpful tutorials.
Ye this is what I meant, when u play the mimic u c notice if ur the end of smth in the mimic it teleports how many players in studio
I thought it didn't work, turns out I typed something wrong. Thank you so much!
Your tutorials are some of the best on RUclips really easy to follow Kudos to you Mike.
you mean kiddos?
@@byronthomaidis3016 no like kudos from fall guys
You pretty much made all of my games from now to whenever possible. Thanks a ton!
BRO THANKS SO MUCH.i watched every tutorial and i never cant but this helped me so much. many thanks
Dude, thank you sooooo much! You really deserve more subs, and gained one!
Thank you!
@@TechwithMikeYT tech can you help me i want to make this thing where you can say a code or a word and it will send you to another game is that possible and can you give me tips to try to do it?
Here is the script so you guys don't have to type it and remember to put your place ID where it says to put it!
Here is script:
local telepart = script.Parent
local TeleportService = game:GetService('TeleportService')
local placeID = -- put your place ID
local canTeleport = true
local function otherGame (otherPart)
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player and canTeleport then
canTeleport = false
TeleportService:Teleport(placeID, player)
end
end
telepart.Touched:Connect(otherGame)
This could work, thank you.
STİLL NOTHİNG WORKS!!
ok don’t care
@@theeggnut727 i think its because he spelled teleport wrong
@@CUBEANIMATES0 no reason to be like that .
This is a LIFESAVER man! Holy crap thank you!
agree
if it doesnt work for you, make sure both games have allow third party invites on. you can find it in game settings then secuirty
there are no allow third party invites its just sales and teleport
@@TRQZed KEYWORD: TELEPORT
I was searching in the depths of the Roblox Devhub not realizing It wouldn't work in Studio. Thanks for specifying that!
Video suggestion
Can you make a tutorial where you'll have to buy a "hint giver" game pass
for each level of the game
Like for example you're having a hard time finishing the level so you buy a gamepass then it gives you a hint, it depends on which level the player is
Nice video BTW! ^^
Thank you so much, my game is growing bigger because I added this to the game! Tysm!
why u have same icon as me?
I was wondering why it didnt work, but then i realised that the place was not puplished... But now it works! veryr cool👍
Thank you! Worked perfectly. I'm using it to make a guy "eat" you, and you appear in his inventory. lol
Thanks allot. Really helpful, clear and easy.
Script for all yall (though i do recommend listening to him and knowing what everything in the script does):
local telePart = script.Parent
local TeleportService = game:GetService('TeleportService')
local placeID = (game id you want them to teleport to)
local canTeleport = true
local function otherGame(otherPart)
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player and canTeleport then
canTeleport = false
TeleportService:Teleport(placeID, player)
end
end
telePart.Touched:Connect(otherGame)
ty man
thank you very much for doing it if it wasnt for you i dont even know how to do it
ty man
can I add something to make it has cooldown like 15 seconds?
@@axeley..o9759 Its definitely possible, but i dont know how to do it so sorry
OMG!!! Thank you so much man! You made my day! Most of the time these scripts don't work but this one did! Thank you so much!
he is pretty good in coding! he deserve 1M subscriber thank u :D
Thanks 🙌
@@TechwithMikeYT :D
You deserve to have way more subs.
Here's one for you too!
@@TechwithMikeYT Hi do you know how to do it so if a player teleports by touching a brick it doesn't appear on their continue playing section if that makes sense so they can't see the game that they were teleported directly into
Tysm, this was so helpful, ive been searching for a tutorial like this, but the ones that ive watched didnt work, after days searching i found this one, dude tysm, im really greatful
What your games name
TYSM I needed this for my backrooms game!
OMG TYSM!!! THIS IS GOING TO BE SO USEFUL FOR THE GAME I AM WORKINg ON :)
can you add it with a intermission timer?
Same question
how to make it so that players can't join for example the second map without finishing the first map. They can search the name of the second map and join it directly
Thank you so much! This helped me so much with my game. Keep up the amazing work!
Ok so in survivor, how do they automatically move you and make you teleport without your day?
You would need System time for that
Thanks a lot
It really helped out my game which is still private thank you so much for the tutorial so the plot of the game was a phobia game you spawn at a camp and if you find all the logs and stuff like that you randomly black out and it will teleport you to space a spacecraft cause the game name is about a phobia of endless space thanks!
Thank you so much! i didnt know what i was doing wrong at first since i didnt know pressing tab to seperate some parts was necessary, or that you could even press tab at all for that
im a new scripter, your videos definitely helped a ton :)
Wow thank you i was struggling with making a teleporter you helped me thanks bro
ok first : this worked so well at the second time trying it and enabling third party teleport
second : everytime i do this again it just says "Attempted to teleport to a place that is restricted" or something like that even tho its the same game id i put in the second time trying this
local Players = game:GetService("Players")
-- Define the target place ID where you want to teleport players
local targetPlaceId = 123456789 -- Replace with your desired place ID
-- Function to teleport players to the target place
local function teleportPlayers()
for _, player in ipairs(Players:GetPlayers()) do
-- Exclude yourself (replace "YourUsername" with your actual username)
if player.Name ~= "YourUsername" then
local success, errorMsg = pcall(function()
player:LoadCharacter()
player:WaitForChild("HumanoidRootPart").CFrame = game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(player.UserId, targetPlaceId).CFrame
end)
if not success then
print("Failed to teleport player " .. player.Name .. ": " .. errorMsg)
end
end
end
end
-- Call the teleport function when a player joins the game
game.Players.PlayerAdded:Connect(teleportPlayers)
i just did this:
part = script.Parent
TS = game:GetService('TeleportService')
Players = game:GetService('Players')
PlayerList = {}
function FoundInList(player)
for _,target in ipairs(PlayerList) do
if target == player then
return true
end
end
return false
end
part.Touched:Connect(function(hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
if not FoundInList(player) then
TS:Teleport(*your game id*, player)
end
end
end)
bro you are the best you help alot of content creators you know
Thanks!
Thank you. I am a beginner builder in roblox studio and trying to make a game that teleports to popular ones!
i don't know why but no tutorials i ever follow ever work :(
YAS so right
same, i can't figure this one out, I put in the exact script and it didn't work :(
@DiggyDoggy i dont know, i put it a part, but when I tried it it didn't work, I tried it in the actual game, and checked the script multiple times
@DiggyDoggy It's only available for your game so you can't teleport to other games.(I just figuredit out and it's sad
@@Cleopatra2000 u need to change ID
For a tutorial suggestion can you do a block that if something touches it so let's say another part was to touch it it explodes or let's say you were too shoot it with a gun then the block explodes
I know this might sound weird but trust me they're going to be very helpful for one of my game projects
I would know how to do that if I knew how to tp parts
So....
First off thank you soooooo much... Even 2 years after the tutorial released, it still works and I am happy :) Just liked it :D
11 days ago for me-
Wow, thanks for making this video, It helped alot!
Thanks this was really helpful. But I have one thing, In the game where you step on the part to teleport, I made it so you can change the character you have. And when you teleport to the other game your character is your default one. Do you have a script for this?
I think it is default by default (no pun intended)
Use after teleport service to repeat the first procedure
@@blockyphoenix2153 Can u explain further pls because I have barely any knowledge on scripting lol
@@arcticreindeerroleplays3488 Alright, so basically, teleporting into another place is like joining a new game. There is a way to use one of the teleporting events called after teleport or something which can be used to launch a script right after a player gets teleported. I personally never used it before but I'm sure it could be useful if you manage to use it right.
@@blockyphoenix2153 Thanks, I’ll do some research and add it to my game.
Good things about the tutorial:
1- Simple
2- Short
3- efficient
Bad things about the tutorial:
Error: theres nothing bad in this tutorial
Error: It only works for one person.
Wait what
@@MrConfound1 wdym
@Mayrve probably because idk maybe you need uhh to create something there idk
@@MrConfound1 theres an cooldown if you guys noticed
I was making a story game that first it will teleport players to the story map by making the car move to the black screen but I didn't know how to teleport so I watched this vid and it told me wat to do thank you soooo much
Thank you very much, I am doing a small game as a gift for my friend's birthday and I really needed this
WOW i really thought i messed up but no, it worked! U earned my like.
THXXXX liked and subscribed and i clicked the bell button :)
This is so handy If your trying to make a Roblox Myth Group thanks man!
Thank you so much I've been trying all day to get a code that works and this one was the only one that worked thank you!
this seems like a very good tutorial, I will use it for my next update for my game after new years eve
YOU ARE AMAZING! Thanks for the code man, SUBBED!
Thanks!
OMG OMG TYSMMMMMM IVE BEEN SEARCHING AGES FOR ONE OF THESE AND ITS FINALLY DONE. IM SO HAPPY RN OMG TYTYTYTYY
NICE THOUGH
Thanks so much for putting the script in the description! Thanks so much it worked!
Thank you so much for this tutorial video friend
You just gained a subscriber!! Thank you so much for you help!
you teach me a lot things. thank you very much, from Türkiye
Thanks Mike
-Mike
Thank you very much this helped me a lot because your teleport script is the latest one not like the others, other peoples game teleport script tutorial are mostly a very old script from 2 or 3 years ago which does not work anymore, sometimes it makes your roblox not responding but yours doesn't I appreciate that!
Its not working :( niether are the others, i read the comment and enabled third party teleporting, but i cant get it to work
Thank you so much, ur the best! keep it up!!!
these tutorials are really helpful thx
Tysm! This saved me alot of anger 😂😂
Thanks this worked 3 years later!
TYSM it worked! So happy it's a fast teleport too!
i was wondering how to teleport players to games that you can only join by going in that game, but this still helped!
Oh yes this is going to make making different games modes easy thank you so much!❤❤❤❤
thx man, this helped alot in my backrooms game!
same i also making backrooms game
thank you so much it's work!! you're the best
TYSM FIRST TIME SCRIPTING WORKED IM LEARNING
you are
a legend
you're tutorials and videos are
tremenodous,fasinating, Marvelous ,Magnificent
You are an outstanding person!
Thanks!!
@@TechwithMikeYT np gg
DUDE , THANK YOU SO MUCH! THIS IS SO USEFUL I HOPE YOU GET THE LIMITED OF SUBS!
the limited of subs
I love you (NO HOMO) tysm dude im making a "The Backrooms" game and I needed this at the end of the first level so you get teleported to The Poolrooms when you touch the exit
heres the script btw if you are having difficulties
Fill in the "local placeID =" with the id of the game you want to teleport to btw.
That's so cool ima add this to my game thank you for making this tutorial!
thanks dude! helps for my horror game!
Wow thank you so much i'm making a game and i need this so much so i will subscribe you :D !!
Thanks for subbing!
TYSM I WATCHED 10 TUTORIALS AND THIS IS THE FIRST ONE THAT WORKS TYTYTYTYTYYTYYT
TYSM BRO I OWE U SOOO MUCHH I SUBBED AND LIKED!!!
Thank you it worked this helped alot!
Thank you bro I'm making a kinda ripoff game of another game and this is perfect
This helped me make my game (Find The Noobs) For Realms, Thanks Alot!
ty, i tryed your other ones and it worker thanks alot man 🙏
i love and respect you dearly mike
Thank you very much, it helped me alot!
This helped so much, thank you mike!
Amazing video!!
Awesome! Thank's a bunch, Mike!
this is such a good tutorial thx
Oh my gosh! This worked, thank you! I will subscribe and like!
Thanks !
Thanks I Made A Spongebob Game So I Can Make Players Teleport To The Inside Thank You Again 😊☺️
Thanks, you just earned a sub!!
Thanks!
Ypu made my game telport the the one i wanted it to thank you!
the code in the pinned comment works for teleporting mulitple players, but im using this for a story game, and when 2 people from different lobbies teleport, it puts them in the same server. the code in the description works but only teleports one player, but doesnt teleport to the same server. im confused pls help
im currently doing the same and im having no luck
I SWEAR BRO IT WORKS FOR ME OMG OOMG I SPENT 2 DAYS GETTING SCAMMED BUT IT FINALLY WORKED OMGGGGGGGGGGGGGGGGGGGGGGGGG
Finnaly… I can be owns a myth and make horror games with this
Dude thank you so much that was super helpful
Dude ur legit Amazing. i thought it was bs when it didnt work but i made some minor errors. But it works now I LOVE U
1 Problem that ive just noticed is that when im playing with friends and we both go on the pad only 1 of us teleports do u have a fix?
Check pinned comment
@@TechwithMikeYT do i delete the other script and use that instead?
You can. Just update the game id section again if you do
using this for find the balloons thanks a bunch!
it worked for me thanks man/bro!
thanks!! i needed this tutorial for my myth game
I LOVE YOU MAN THE ALLOW TELEPORT THING SAVED ME MAN :))
Thank you so much! This is very Helpful.