How to Make A Sprint Button On Roblox || ROBLOX STUDIO

Опубликовано: 05 Август 2026
на канале: Frepzter
1,102
22

How to Make A Sprint Button Roblox || ROBLOX STUDIO
Hey guys in todays video I'll be showing you how to make a simple sprint gui on Roblox!

Localscript:
local db = true
script.Parent.MouseButton1Click:Connect(function()
if db == true then
db = false
game.ReplicatedStorage.Revents.Sprint:FireServer()
script.Parent.Text = ("Walk")
else
db = true
game.ReplicatedStorage.Revents.Normal:FireServer()
script.Parent.Text = ("Run")
end
end)
server script:
game.ReplicatedStorage.Revents.Sprint.OnServerEvent:Connect(function(plr)
plr.Character.Humanoid.WalkSpeed = 26

end)

game.ReplicatedStorage.Revents.Normal.OnServerEvent:Connect(function(plr)
plr.Character.Humanoid.WalkSpeed = 16

end)