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.

3 comments
Dang it Goulstem, you beat me. I was eating :C
YOUUUR TOOO SLOOOW
I think I found the problem