Advertisement
VengefulProgram

Untitled

Aug 15th, 2017
34,418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. --Made by ttyyuu12345, but im only passing it on ;p
  2. wait()
  3. script:Destroy()
  4. function descend(obj,class,func)
  5. for i,v in pairs(obj:GetChildren()) do
  6. if v:IsA(class) then
  7. func(v)
  8. end
  9. descend(v,class,func)
  10. end
  11. end
  12. local pls = game:GetService("Players").LocalPlayer
  13. function initiateCharacter(char)
  14. if not char then return end
  15. wait()
  16. descend(char,"BasePart",function(obj)
  17. obj.Anchored = false
  18. obj.Changed:connect(function()
  19. if obj.Anchored then
  20. obj.Anchored = false
  21. end
  22. end)
  23. end)
  24. descend(char,"Humanoid",function(obj)
  25. obj.WalkSpeed = 16
  26. obj.Changed:connect(function()
  27. if obj.WalkSpeed == 0 then
  28. obj.WalkSpeed = 16
  29. end
  30. end)
  31. end)
  32. end
  33. initiateCharacter(pls.Character)
  34. pls.CharacterAdded:connect(function(c)
  35. initiateCharacter(c)
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement