01 | script.Parent.Blade.Touched:connect( function (hit) |
02 | if equipped and character and humanoid and humanoid.Health > = 0 and hit and not hit:IsDecendantOf(character) then |
03 | target = hit.Parent:FindFirstChild 'Humanoid' |
04 | if target and target.Health > = 0 then |
05 | print (hit.Parent.Name) |
06 | target:TakeDamage(damage) |
07 |
08 | end |
09 | end |
10 | end ) |
Just change all the stuff inside it to this:
1 | script.Parent.Blade.Touched:connect( function (hit) |
2 | if hit.Parent.Humanoid ~ = nil then |
3 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - (The damage u want) |
4 | end |
5 | end ) |