I’m currently editing a public gun pack to try to personalise it. I’m trying to make it so when I reach a keyframe of a gun reload animation, the animation would pause by using AdjustSpeed(0). The person who made the gun pack had created a function for detecting keyframes and it works fine. I had tested this by putting a print statement inside the function.
The function plays fine when it reaches the keyframe, this was proven by my print statement, however, the animation speed does not adjust to 0/pause. I tried looking on other posts and many articles on the developer hub but cannot find a solution. How can I fix this? All help is appreciated!
Well, upon looking more into adjust speed, try saving (Reload.Length/MiscSettings.ReloadSpeed.Value) into a variable, so that it prints the right number that you want. Once you have that variable, call it speed for example, put it into Reload:AdjustSpeed(speed)… but other than that I am pretty sure you’re able to stop the AnimationTrack with :Stop()
Sorry I am not much help, I never really had to use adjustspeed. Just some ideas!
Update, I had messaged the original creator of the gun pack and he told me there was a script at the very bottom looping the AdjustSpeed to a value. I have since removed the code and the problem is now fixed!