Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This whole system was needed to be reworked, There you go Robotboy655 reworked
- local blades = 0
- local hit = false
- for id, t in pairs( self:GetAttachments() ) do
- if !string.match( t.name, "blade(%d+)" ) then continue end
- local bladeNum = string.match( t.name, "blade(%d+)" )
- if ( bladeNum && self:LookupAttachment( "blade" .. bladeNum ) > 0 ) then
- if self:DamageTrace(bladeNum) && !hit then
- hit = true
- end
- end
- end
- if blades == 0 then
- if self:DamageTrace(1) && !hit then
- hit = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement