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

How would i make a TextButton onclick teleport somewone to a part?

Asked by 10 years ago

Im making a game and if somewone touches the TextButton It will teleport them to a part how can i do this?

1 answer

Log in to vote
0
Answered by 10 years ago

MouseButton1Down, game.Players.LocalPlayer, MoveTo(), etc.

script.Parent.MouseButton1Down:connect(function()
    game.Players.LocalPlayer.Character:MoveTo(workspace.Part.Position) --change workspace.Part to whatever part you want them to teleport to
end)
1
Are you sure it isnt MouseButton1Click? digitalzer3 123 — 10y
0
MouseButton1Down is also applicable. Click is a 'Down' followed by an 'Up' on the same GUI element, regardless of time passed. adark 5487 — 10y
Ad

Answer this question