Using a script online.
script.Parent.blade.Touched:connect(function(p) if script.Parent.CanDamage.Value == true then p.Parent.Humanoid:TakeDamage(20) script.Parent.CanDamage.Value = false end end)
The NPC humanoid part is named 'NPC'
IN THE script it says "Humanoid is not recognized"
but when I use
p.Parent.Henchmen.NPC:TakeDamage(20)
(the model is named henchmen and the humanoid part is named 'NPC')
When I swing the sword, it actually takes damage from the NPC far away without even touching it.
Thanks for help in advance.

1 comment
That didn't help the problem, it just simply takes damage the minute I pull out the sword.