Advertisement
no1star

Untitled

Aug 8th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. -- This whole system was needed to be reworked, There you go Robotboy655 reworked
  2.  
  3. local blades = 0
  4. local hit = false
  5. for id, t in pairs( self:GetAttachments() ) do
  6. if !string.match( t.name, "blade(%d+)" ) then continue end
  7.  
  8. local bladeNum = string.match( t.name, "blade(%d+)" )
  9.  
  10. if ( bladeNum && self:LookupAttachment( "blade" .. bladeNum ) > 0 ) then
  11. if self:DamageTrace(bladeNum) && !hit then
  12. hit = true
  13. end
  14. end
  15. end
  16. if blades == 0 then
  17. if self:DamageTrace(1) && !hit then
  18. hit = true
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement