Clash Effects for Enemy Not Working

So I’m making a combat system (with swords).

My goal is to have the Enemy you hit show the clash effects via the tool they are holding.

local function sparks(Character)
	for _, child in pairs(Character:GetChildren()) do
		if child:IsA("Tool") then
			for _, x in pairs(child.Model.HitboxReg.ClashEffects:GetChildren()) do
				x.Enabled = true
				wait(.1)
				x.Enabled = false
			end
		end
	end
end

This is my attempt. Code gives no error in output but doesn’t let me go past function when called.
What I’m doing is looking in the Character from “Humanoid.Parent” to get the Character of the Enemy. Then looking to look for the “Tool” they are holding. In the tool under a part, aka “HitboxReg”, holding data for the weapons (was made for easy use of finding certain things) I look for the ClashEffect attachment that holds 3 items. So I want to enable all 3 at the same time for “wait(.1)”

Are they particles? And if so what’s the rate on the particles

I’ve tested the particles with just showing on the player’s (your) blade vs the enemies.

If the particles spawn rate is to low it might not spawn any

You could use Particle:Emit(#) instead, this will probably make it work.

API reference for Particle:Emit()

If it still doesn’t work, make sure the particle’s top-most ancestor is the Workspace and that the script you’re using is a ServerScript.

Hope this helps! :slight_smile:
~ Xitral, Lua Programmer

It all works now. Not sure what I fully did to fix it (the code is still the same in my weapon) but thanks for all who tried helping me! <3