Hit effect not working

Why does this effect not work?

	local hiteff2 = script.HitEffect.Attachment:Clone()
				hiteff2.Parent = humanoid.Parent.HumanoidRootPart
				hiteff2.Position = humanoid.Parent.HumanoidRootPart.Position

				for _, particle in pairs(hiteff2:GetChildren()) do
					particle:Emit(3)
				end

screemshot

1 Like

can somebody please respond, I don’t know why this isn’t working

1 Like

Could you give a screenshot of your output?
And or show us what the effect is supposed to look like?

1 Like

Nothing is in the output, there are no errors

1 Like

Is there anything triggering the effect to run?

1 Like

hiteff2 = script.HitEffect.Attachment:Clone()

So to move an attachment by position you have to use WorldCFrame in the attachment.
I would recommend cloning the part and moving the part instead.

Your script is working fine, is just the Attachment is moved far from it’s parent.
If you still wanna just move/clone the attachment then,

hiteff2.WorldCFrame = HumanoidRootPart.WaistRigAttachment.WorldCFrame 
1 Like

Alright, i’ll try this to see if it works

1 Like

This should work:

local hiteff2 = script.HitEffect.Attachment:Clone()
hiteff2.Parent = humanoid.Parent.HumanoidRootPart
hiteff2.Position = humanoid.Parent.HumanoidRootPart.Position

for _, particle in pairs(hiteff2:GetChildren()) do
    particle:Emit(3)
end
1 Like

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