Hitbox not dealing any dmg

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.

The object you are hitting is not the character. You can get the parent of hit to get humanoid

You have to get the character’s model using :FindFirstAncestorWhichIsA() and then from there you can get the player’s humanoid.

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.”

oooooh ok yeah yeah tysm, i forgot about that

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.