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

How Do You Make A teleport to another game?

is this right?

s = game:service("TeleportService")

function onClicked() s:Teleport(id) end

script.Parent.MouseButton1Click:connect(onClicked)

i think i forgot something

1 answer

✓ Accepted answer

http://wiki.roblox.com/index.php?title=TeleportService_guide

You forgot to say who you are teleporting. After you put the id use; ',game.Players.LocalPlayer' also :GetService() not just ::service()

local player = game.Player.LocalPlayer
local s = game:GetService("TeleportService")
local id = 000000
function onClicked() s:Teleport(id,player) end
script.Parent.MouseButton1Click:connect(onClicked)

1 comment

0

thanks

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