MuchachoHitbox.touched not firing

Code:

hitbox.Touched:Connect(function(hit, Ehumanoid: Humanoid)
		print(combo)
		 if Ehumanoid and Ehumanoid ~= humanoid then
			local Echaracter: Model = hit.Parent
			local Eroot: BasePart = Echaracter.HumanoidRootPart
			Ehumanoid:TakeDamage(DAMAGES[combo])
			character:SetAttribute("Attacking", false)
			local hit = ReplicatedStorage.VFX.Hit:Clone()
			hit.Parent = ReplicatedStorage.VFX
			Debris:AddItem(hit, 2)
			vfxEvent:FireAllClients(hit.Attachment.ParticleEmitter, true, 1, root.RootAttachment.Position
				, Eroot.RootAttachment, 2)
			
				if combo == MAX_COMBO then
					print("hi")
				Knit.GetService("KnockbackService").Knockback(Echaracter, root.CFrame.LookVector * 200)
				end
				end
	
	
	end)

Does combo print?


I’m pretty sure that .Touched only returns the part that touched it.

Lmk if this fixes it.

hitbox.Touched:Connect(function(hit: BasePart)
	print(combo)
	local Echaracter: Model = hit.Parent
	local Ehumanoid: Humanoid = Echaracter:FindFirstChild("Humanoid")

	if Ehumanoid and Ehumanoid ~= humanoid then
		local Eroot: BasePart = Echaracter.HumanoidRootPart
		Ehumanoid:TakeDamage(DAMAGES[combo])
		character:SetAttribute("Attacking", false)
		local hit = ReplicatedStorage.VFX.Hit:Clone()
		hit.Parent = ReplicatedStorage.VFX
		Debris:AddItem(hit, 2)
		vfxEvent:FireAllClients(hit.Attachment.ParticleEmitter, true, 1, root.RootAttachment.Position, Eroot.RootAttachment, 2)

		if combo == MAX_COMBO then
			print("hi")
			Knit.GetService("KnockbackService").Knockback(Echaracter, root.CFrame.LookVector * 200)
		end
	end
end)

it returns the humanoid too, but the combo doesnt print either

I don’t think so.

Check the “Parameters”.

Nope, It doesn’t.

The only Touched event that returns something else is Humanoid.Touched which returns the Limb that fired the event

@LuvvReal This script should work, try it out

I don’t think you guys know exactly what I’m using, it’s a module called MuchachoHitbox with a custom touched event, which does indeed return the humanoid

Then you should send us the .Touched event code