So I was trying to create a place teleporter in a GUI. I used this but it doesn't seem to work:
script.Parent.MouseButton1Click:connect(function()
wait(6)
game:GetService("TeleportService"):Teleport(3194743457)
end)
I would like to keep it in a TextButton

2 comments
You need to put in the player you are teleporting in the parameters for Teleport
But I want it to be the local player