I need help!
I’ve been making a game and I need help making a player click the button and then teleport to a different location.
I couldn’t really make a script but I figured something goes into the blank spot for the function:
Here’s the Workplace:

I made this to my game and its working:
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local Character = game.Workspace:WaitForChild(player.Name)
Character.HumanoidRootPart.CFrame =(Here put the part and then .CFrame)
end)
2 Likes
Thanks, I’ll test it out soon.
Thanks, it works wonderfully. Have a good day!