Probably the same function of code but instead defining it when the GUI button is clicked with
MouseButton1Click
.MouseButton1Click
.ill try, im not good at scriptingProbably the same function of code but instead defining it when the GUI button is clicked withMouseButton1Click
.
Just make sure you're defining the correct button and you should be good.ill try, im not good at scriptingProbably the same function of code but instead defining it when the GUI button is clicked withMouseButton1Click
.
How do i make it please put the script
local button = Instance.new("TextButton")
button.Name = "FlingButton"
button.Size = UDim2.new(0.2, 0, 0.1, 0)
button.Parent = game.Players.LocalPlayer.PlayerGui
button.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character:MoveTo(Vector3.new(0,1000,0))
end)