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

i keep not getting teleported to my other places i dont know why?

so i create the GUI screen teleported but when im trying it on studio it work but it doesnt work on server.

teleport = game:GetService("TeleportService")
place = 1243953879
button = script.Parent



button.MouseButton1Click:connect(function(p)
		teleport:Teleport(place,p)	

end)

1 answer

✓ Accepted answer
teleport = game:GetService("TeleportService")
place = 1243953879
button = script.Parent
local player = game.Players.LocalPlayer -- You forgot the LocalPlayer also don't put this in an server script!


button.MouseButton1Click:connect(function(p)
        teleport:Teleport(place,player)  

end)

Hope i helped you out :)

1 comment

0

thank you so much :)

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