AnimationController not playing animation on custom rig

Hello! I have a problem with animations. I have a rig and animated it. It works fine in the animation editor but when I use this script, it doesn’t work.

local anim = script.Parent.Tail.AnimationController:LoadAnimation(script.Parent.Tail.Animation)

game.ReplicatedStorage.Events.Animations.ScorpionHelmetAnim.Event:Connect(function()
	anim:Play()
end)

and also this script.

while 3 do
	script.Parent:Fire()
end

no errors and nothing happens. You can ask for a rbxm file.

1 Like

check:

is the rig anchored, does the rig have the same motor6d’s/ is the rig the same as the one thaat waas animated. (And also check the animation priority, probably doesn’t matter if its the only animation being run)

anchored, not made with motor6d’s, same thing used for animating, only animation being run.

can you send the file please? also if im not mistaken all the bits (thaat move, you can leave the primary paart anchored) cant be anchored. aand it needs motor6d welds inorder to animate, so i dont know how you made an animation without those

file.rbxm (7.7 KB)

I made the model in blender and it uses bones.

did you mean:

while true do
 wait(3)
end

i wrote the same script, and it nearly crashed studio, you’ve got a recursive loop with no delay between

image

1 Like

Yes, that is what I was trying to do.

1 Like

I changed it but it wouldn’t work.

1 Like

i wrote a script that:

loads animation
then plays

and it works, none of the networking stuff though, so print wherever you can and see if it prints (debug).

Turns out that I had a script in replicated storage so it did nothing. Thanks for the help!

1 Like

oh haha, i remember having that exact same issue when i was a rookie :joy:

1 Like

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