Hello, I am trying to run an animation of a skinned mesh using a script, but for some reason, there are no errors and it’s not running. However, using the animation editor, it animates perfectly.
This is inside of the skinned mesh model.
This is the script i’m using:
local animationController = script:WaitForChild("AnimationController")
local animation = script:WaitForChild("Animation")
local animator = animationController:WaitForChild("Animator")
local animationTrack = animator:LoadAnimation(animation)
animationTrack.Looped = true
animationTrack:Play()
Thanks