I want to make my gui's textbutton to teleport to another place. I tried with two scripts, but they didn't work. Please help
I believe it should look something like this (in a LocalScript that's inside the button):
local placeId = 5847573 --change to place id script.Parent.MouseButton1Click:Connect(function() game:GetService("TeleportService"):Teleport(placeId,game.Players.LocalPlayer) end)
Closed as Not Constructive by OldPalHappy
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?