Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- The first one is for sitting with a chance to trip. The second one is for just sitting.
- DamageMod:RegisterWeaponPart(args[1], {part}, 0, function(hit)
- if hit:IsA"Player" then
- if hit.Character.Humanoid then
- if math.random(1,maxnumber) == maxnumber then -- replace maxnumber with whatever
- hit.Character.Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- else
- hit.Character.Humanoid.Sit = true
- end
- end
- end
- end)
- DamageMod:RegisterWeaponPart(args[1], {part}, 0, function(hit)
- if hit:IsA"Player" then
- if hit.Character.Humanoid then
- hit.Character.Humanoid.Sit = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement