Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do You Make A teleport to another game?

Asked by
reekie1 -2
9 years ago

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

Log in to vote
4
Answered by
LostPast 253 Moderation Voter
9 years ago

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)
0
thanks reekie1 -2 — 9y
Ad

Answer this question