So basically i'm trying to make my custom made weapons and i've noticed that if i hit between two parts of a person, it'll count as if it had hit both and make the players take damage for BOTH the parts that were hit. For example, it removes 20 health for the head and 10 health for the torso, so if i hit between both of these then they take 30 damage instead of 20 or 10. Does anyone have an idea of how to fix it? (Here's the important part of the code that i already made btw)
if hit.Parent.Parent:IsA("Tool") then
return
else
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Name == "Head" then
fireballClone:Destroy()
hit.Parent.Humanoid.Health -= 20
print(hit.Name)
else
if hit.Name == "HumanoidRootPart" then
return
else
fireballClone:Destroy()
hit.Parent.Humanoid.Health -= 10
print(hit.Name)
end
end
else
fireballClone:Destroy()
end
end
end)```
** You are now Level 28! **