Where to start on creating a script that you can click on a gui and adjust speed

So i have a question about where to start on creating this sort of script, i’ve got a Gui made for it, but trying to find a way to make it possible

What do you mean adjust the speed, please go more in depth as your post is very vague on the situation?

so the player if they have enough speed they can increase, or decrease if to fast

Insert this into a local script inside the add speed button:

--//Services
local Players = game:GetService("Players")

--//Variables
local LocalPlayer = Players.LocalPlayer
local Button = script.Parent

--//Functions
Button.MouseButton1Click:Connect(function()
	LocalPlayer.Character.Humanoid.WalkSpeed += 5
end)

Insert this into a local script inside the minus speed button:

--//Services
local Players = game:GetService("Players")

--//Variables
local LocalPlayer = Players.LocalPlayer
local Button = script.Parent

--//Functions
Button.MouseButton1Click:Connect(function()
	LocalPlayer.Character.Humanoid.WalkSpeed -= 5
end)

Also, you can send me your GUI so I can fully implement everything for you.

1 Like

yeah sure no problem, the settings GUI?

Yea, you can make a model and share it to me.

i put it in a model and sent you it in pm