I am having trouble getting my viewmodel to animate. I used Moon Animator 2 to animate the parts and I saved the animation to Roblox. I added an animation controller and an animation instance with the correct ID. But, when I test out the animation in-game, the animation does not play.
1 Like
The first line references Animation
instead of AnimationController
. That should be the mistake.
1 Like
local Animator = script.Parent.Humanoid:FindFirstChildOfClass("Animator")
local Animation = script.Parent.Animation
local animTrack = Animator:LoadAnimation(Animation)
animTrack:Play()
1 Like
Oops, I forgot to show the updated script. I fixed this and got this script, but still it didn’t work.
I tried this script out, but still didn’t work. There were no errors.
And yes, there are keyframes in the animation.