Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a teleporter to another game?

I really wanted to make this game called "Christmas Missions" on roblox, but I tried free models for teleporters and even teleporters I tried on my old account but it wont work! could you give me a code that will work please and what do I add to function it! Please help!

1 answer

✓ Accepted answer

In order to teleport to another game, you need to take advantage of TeleportService. TeleportService has a function called Teleport, which can send you to a specific game of your choice.

The Teleport function takes in 2 arguments..

  • The place ID to teleport to

  • The Player you wish to teleport

Note: The second argument may be nil if you are using this from a LocalScript.

local service = game:GetService("TeleportService");
local place = 20279777; --Voidacity's Script Builder
local plr = game.Players.Goulstem;

service:Teleport(place,plr);

3 comments

0

So do I need a local script or just a plain script to use for this model?

0

Either will work. I was just saying that if you do use this from a localscript, the 'plr' argument of the Teleport function isn't needed because it will default to the client.

0

Okay, thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.