vhitboxClone.Touched:Connect(function(hit)
print("touched")
local humanoid = hit:FindFirstChild("Humanoid")
if humanoid and humanoid ~= Hum then
print("dmg dealt")
humanoid:TakeDamage(Damage)
end
end)
code prints touched but it doesn’t go through the humanoid if.
A part inside of the player’s character will be the “hit” instance, not the character itself. Hence, you have to write “hit.Parent” instead of just “hit.”