I want to make a textbutton that teleports the player to another place. I tried with this:
local placeId = 5847573 --change to place id
script.Parent.MouseButton1Click:Connect(function()
game:GetService("TeleportService"):Teleport(placeId,game.Players.LocalPlayer)
end)
but it didn't work. Please help me.

4 comments
Any errors?
No
But it doesn't work
Ok solved