Help to make a particle emitter turn on during a marker of an animation

I’ve created the animation and have the particle emitter tied to the limb
but for the life of me i cant figure out how to do it

I’ve tried a bunch of scripts and even asked chatgpt :scream:

but it just doesn’t work, the script runs and prints all the checkpoints but the animation never plays.
please tell me I’m just being a fool and its a simple fix, thanks.

can you show your code then? theres not much we can do if we cant see the code

local rig = workspace.Rig
local animator = rig:FindFirstChild("AnimationController") and rig.AnimationController:FindFirstChild("Animator")
local particles = rig.LeftUpperLeg.Attachment.Blood

if not animator then
    warn("No Animator found in AnimationController!")
    return
end

-- Create a tiny test animation (rotate LeftUpperLeg slightly)
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://0" -- placeholder, we’ll use keyframe in code

-- Load animation
local track = animator:LoadAnimation(animation)

-- Connect particle markers
track:GetMarkerReachedSignal("Legfall"):Connect(function()
    print("Marker: Legfall reached")
    particles.Enabled = true
end)

track:GetMarkerReachedSignal("HeadFall"):Connect(function()
    print("Marker: HeadFall reached")
    particles.Enabled = false
end)

-- Play the animation
print("Playing test animation...")
track:Play()
print("Animation playing:", track.IsPlaying)

it would print everything but nothing would happen

you never changed the animation id?

1 Like

Did you anchored your rig on accident? that can cause the animation not to play (correct me if im wrong)