Advertisement
IHATEMICROWAVEOVEN

hopppa likes to

Sep 11th, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. -- The first one is for sitting with a chance to trip. The second one is for just sitting.
  2.  
  3. DamageMod:RegisterWeaponPart(args[1], {part}, 0, function(hit)
  4. if hit:IsA"Player" then
  5. if hit.Character.Humanoid then
  6. if math.random(1,maxnumber) == maxnumber then -- replace maxnumber with whatever
  7. hit.Character.Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  8. else
  9. hit.Character.Humanoid.Sit = true
  10. end
  11. end
  12. end
  13. end)
  14.  
  15. DamageMod:RegisterWeaponPart(args[1], {part}, 0, function(hit)
  16. if hit:IsA"Player" then
  17. if hit.Character.Humanoid then
  18. hit.Character.Humanoid.Sit = true
  19. end
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement