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)
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)
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