Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local toggleSprintEvent = game.ReplicatedStorage:WaitForChild("ToggleSprint")
- toggleSprintEvent.OnServerEvent:Connect(function(plr, turnOnSprint)
- local char = plr.Character
- if not char:FindFirstChild("Humanoid") then return end
- if turnOnSprint == true then
- char:FindFirstChild("Humanoid").WalkSpeed = 50
- else
- char:FindFirstChild("Humanoid").WalkSpeed = 16
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement