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

Universe teleportation: Not working?

Asked by 8 years ago
function OnClick()
game:GetService("TeleportService"):Teleport(259945232,game.Players.LocalPlayer) 





end
script.Parent.ClickDetector.MouseClick:connect(OnClick)

I have gotten no errors and it only works in test mode on a NORMAL script, not a Local.

1 answer

Log in to vote
3
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
8 years ago

While using the Teleport function in a LocalScript, you don't need to supply the player.

function OnClick()
    game:GetService("TeleportService"):Teleport(259945232) 
end

script.Parent.ClickDetector.MouseClick:connect(OnClick)
1
Dang it Goulstem, you beat me. I was eating :C EzraNehemiah_TF2 3552 — 8y
0
YOUUUR TOOO SLOOOW Goulstem 8144 — 8y
0
I think I found the problem MEANDUDE87 60 — 8y
Ad

Answer this question