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 11 years ago

How do I make a teleport GUI

1 answer

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

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

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

Answer this question