Advertisement
HowToRoblox

ChangeWalkSpeedScript

Jan 12th, 2020
2,343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local toggleSprintEvent = game.ReplicatedStorage:WaitForChild("ToggleSprint")
  2.  
  3. toggleSprintEvent.OnServerEvent:Connect(function(plr, turnOnSprint)
  4.    
  5.     local char = plr.Character
  6.    
  7.     if not char:FindFirstChild("Humanoid") then return end
  8.    
  9.     if turnOnSprint == true then
  10.        
  11.         char:FindFirstChild("Humanoid").WalkSpeed = 50
  12.        
  13.     else
  14.        
  15.         char:FindFirstChild("Humanoid").WalkSpeed = 16
  16.        
  17.     end
  18.    
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement