Advertisement
Guest User

chicken

a guest
Feb 22nd, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function onPlayerEntered(newPlayer)
  2. newPlayer.Character.Humanoid.WalkSpeed = 50 --Change this number to change speed. 16 is normal speed.
  3. end
  4. game.Players.ChildAdded:connect(onPlayerEntered)
  5.  
  6. function onPlayerRespawned(newPlayer)
  7. h = newPlayer:findFirstChild("Humanoid")
  8. if h ~= nil then
  9. if game.Workspace:findFirstChild(h.Parent.Name) ~= nil then
  10. h.WalkSpeed = 50 --Make sure this number is the same as the number above.
  11. end
  12. end
  13. end
  14. game.Workspace.ChildAdded:connect(onPlayerRespawned)
  15. --MetaRyan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement