I want to teleport to another place after pressing a textbutton I have in my StarterGui. How do I do it?
I tried placing a local script inside the textbutton like this:
PlaceId = '1392880606' Game.Players.PlayerAdded:connect(function(player) wait(2) if not player.Character then player:LoadCharacter() end Game:GetService('TeleportService'):Teleport(PlaceId,player.Character) end)
Please anyone knows what can I do?

6 comments
It doesn't work
If it does not work ensure that the game is published and active
Oh right
Did it work?
I'm still doing it
It didn't work and the place is activated