when I run this the part goes above the player's head for some reason and doesn't work
canDmg = true
damage = 45
script.Parent.Touched:connect(function(Target)
print(1)
if canDmg == true then
if script.Parent.plr.Value ~= Target.Parent.Name then
if Target.Parent:findFirstChild("Humanoid") then
canDmg = false
Target.Parent.Humanoid.Health = Target.Parent.Humanoid.Health - damage
print(2)
end
end
end
end)
