Advertisement
BlastingStone

mom

Feb 13th, 2020
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. lp = game.Players.LocalPlayer
  2. local aw = false;
  3. local sw = false;
  4. local rg = false;
  5. lp.Chatted:Connect(function(c)
  6. if c == ".airwalk" then
  7. aw = true;
  8. sw = false;
  9. rg = false;
  10. elseif c == ".unairwalk" then
  11. aw = false;
  12. elseif c == ".swim" then
  13. sw = true;
  14. aw = false;
  15. rg = false;
  16. elseif c == ".unswim" then
  17. sw = false;
  18. elseif c == ".ragdoll" then
  19. rg = true;
  20. sw = false;
  21. aw = false;
  22. elseif c == ".unragdoll" then
  23. rg = false;
  24. end
  25. end)
  26. game:GetService("RunService").Stepped:Connect(function()
  27. if sw then
  28. lp.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  29. elseif aw then
  30. lp.Character.Humanoid:ChangeState(Enum.HumanoidStateType.StrafingNoPhysics)
  31. elseif rg then
  32. lp.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
  33. end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement