Advertisement
IHATEMICROWAVEOVEN

scuffed damage

Aug 3rd, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. function DamageService:RegisterDamage(Handler, Target, Damage, AttackType)
  2. if Damage < 0 then return false end
  3. if DamageService:CanDamage(Handler, Target) then
  4. if Target:IsA'Player' then
  5. Target.Character.Humanoid:TakeDamage(Damage)
  6. --Target.Character.Humanoid.Health = Target.Character.Humanoid.Health - Damage
  7. else
  8. Target.Humanoid:TakeDamage(Damage)
  9.  
  10.  
  11.  
  12.  
  13.  
  14. -- this is the new part
  15. if Target:FindFirstChild("Targets") then
  16. require(Target.Targets).Offender(Handler.Name)
  17. end
  18. -- end of new part
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. end
  26. return true
  27. end
  28. return false
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement