So yeah. Hey everyone! I have a problem with the NPC Hitbox I made. Here’s a vid: robloxapp-20220829-1345056.wmv (1.7 MB)
The Hitbox I’m talking about is the red part on the NPC’s torso. The problem is, how did it reach my character?
This is the script of the hitbox:
local box = script.Parent
box.Touched:Connect(function(hit)
if not hit:IsA("BasePart") then
return
else
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
human.Health -= 100
end
end
end)