-
What do you want to achieve?
I just want an animation to play with my viewmodel. I currently everything set up ready for the animation, so it should be playing. -
What is the issue?
The issue is that my animation doesn’t play even thoughAnimationTrack.IsPlaying
is true, and that theAnimator:LoadAnimation()
returns the AnimationTrack. However, it is not playing the animation at all. -
What solutions have you tried so far?
I searched everywhere for the solution, however, there isn’t an answer that helps me in any way.
...
--I have self.loadedAnimations and self.settings loaded up. loadedAnimations and settings is a table.
function handler:reload()
if not self.loadedAnimations.reload then
self.loadedAnimations.reload = self.character.Humanoid:WaitForChild("Animator"):LoadAnimation(self.settings.animations.viewmodel.reload)
print(self.loadedAnimations.reload)
end
self.loadedAnimations.reload:Play()
print(self.loadedAnimations.reload.IsPlaying)
end
...
And here’s the settings script if you need it:
local data = {
weapon = {
name = root.Name;
auto = false;
};
animations = {
viewmodel = {
reload = root.animations.reload;
};
...
Here’s the hierarchy as well:
And video footage of it not working:
Thanks to anyone who helps me, I would gladly appreciate it. I don’t know why it wouldn’t work.