drakomatic
(drakomatic)
September 16, 2023, 7:46pm
#1
The animation I created for my viewmodel is not playing correctly.
What the animation Should look like:
I find this strange because I’ve worked with basically the exact same system before and it worked fine
local ViewModel = Primary.ViewModel.Value:Clone()
local Animator = ViewModel.Animation.Animator
local VM_Idle = Animator:LoadAnimation(ViewModel.Animations.Idle)
VM_Idle.Looped = true
VM_Idle:Play(0.01,1,1)
--Yes this is the entirety of any animation related code I have
poly3rd
(vioisright)
September 16, 2023, 7:48pm
#2
Have you tried manually editing the animation’s priority? Ex:
VM_Idle.Priority = Enum.AnimationPriority.Action4
drakomatic
(drakomatic)
September 16, 2023, 7:48pm
#3
This shouldn’t be an Issue, as the animation priority is Action and no other animations are playing.
Also, changing animation priority through code was broken last time I checked.
poly3rd
(vioisright)
September 16, 2023, 7:49pm
#4
What about printing all the animation tracks?
print(Animator:GetPlayingAnimationTracks())
drakomatic
(drakomatic)
September 16, 2023, 7:51pm
#5
I scaled down the Viewmodel for various reasons, im going to remake the joint’s and see if that fixes it
drakomatic
(drakomatic)
September 16, 2023, 7:58pm
#6
When printing the animation tracks, the only one that says it’s playing is the one I made
I also tried increasing the animation weight and priority, which did not work.
poly3rd
(vioisright)
September 16, 2023, 7:59pm
#7
Then it’s most probably an animation problem rather than a scripting problem.
drakomatic
(drakomatic)
September 16, 2023, 8:06pm
#8
I got it to work
It was an issue with the model scale, just not the one i thought it was.
I fixed it by regrouping the model so the scale was set to 1.
system
(system)
Closed
September 30, 2023, 8:06pm
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.