Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My script stopped working when using animation controller without any reasons, why?

i have no idea how is it not working, im using an animation controller on a model.

code:

local gasteridle
	local gasteropen
	local gasterfire
	local animctrl = gb.AnimationController
	local idleanim = gb:WaitForChild("Idle")
	local openanim = gb:WaitForChild("Open")
	local fireanim = gb:WaitForChild("Fire")
	gasteridle = animctrl:LoadAnimation(idleanim)
	gasteropen = animctrl:LoadAnimation(openanim)
	gasterfire = animctrl:LoadAnimation(fireanim)
	gasteridle:Play()

2 comments

1

What is "gb" ?

0

"gb" was a model with some part and animationcontroller in.

1 answer

✓ Accepted answer

I might try not defining the Animationcontroller with local. Try accessing it with gb.

Animations are weird, I know. They don't like local, they prefer the rig they were made with. That's a big one as well. Did you animate the animations with the rig you're trying to use? That may be why they won't play.

6 comments

0

It's still not working, and no error was show up in output, this is weird

0

Hmm... try this. Don't define the animations themselves in the loadanimation. Just do gb.Something.Idle (Or something like that)

0

I had trouble like this one time. I tried using an old animation from a regular r6 rig and all that it did was shake the torso.

0

Still not working...

0

I placed it in another script and it suddenly works, but anyways thanks!

0

Oh yeah sometimes that works too

This discussion is preserved as it was. New answers, comments, and votes are closed.