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

0

Any errors?

0

No

0

But it doesn't work

0

Ok solved