Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do i make a teleport GUI?

Asked by 10 years ago

How do I make a teleport GUI

1 answer

Log in to vote
2
Answered by
Sublimus 992 Moderation Voter
10 years ago

Yes. Having an MouseButton1Downevent run with a button in a GUI that then accesses the Players character and moves them.

--Put this inside a LocalScript, and then put it in a button inside of a GUI
position = Vector3.new(0,0,0) -- Change the position to your liking
script.Parent.MouseButton1Down:connect(function() -- When the button is clicked
    player = game.Players.LocalPlayer -- The player
    player.Character:MoveTo(position) -- Moving them
end)
0
Could you script it please? awesometinyman 10 — 10y
Ad

Answer this question