Yes. Having an MouseButton1Down
event 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 |
2 | position = Vector 3. new( 0 , 0 , 0 ) -- Change the position to your liking |
3 | script.Parent.MouseButton 1 Down:connect( function () -- When the button is clicked |
4 | player = game.Players.LocalPlayer -- The player |
5 | player.Character:MoveTo(position) -- Moving them |
6 | end ) |