Here's what I've tried.I've tried editing the answers given for a GUI from mousebutton1click to mouseclick but it won't work. Please help! ????????
✓ ANSWER ACCEPTED
How do you script a place teleporter once clicked a part?
2 answers
✓ Accepted answer
In your part add a click detector and also add a script. (The script needs to be inside the part and not inside the click detector.)
--This gets the teleporter service.
local TeleportService = game:GetService("TeleportService")
--This is where the variable for the place is set.
local Place = 1224212277 --Change the ID.
--This is a function that runs when you click on the part.
script.Parent.ClickDetector.MouseClick:Connect(function(clicked)
--This gets the player from the click.
local player = clicked
--This teleports the player to the place using teleport service.
TeleportService:Teleport(Place,player)
end)
Paced Well Whenever your doing a gui and the item you want to get clicked on it would be itemname.MouseButton1Click:connect(function()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
thanks! i forgot about what you did in line 11 that was why.