So I have this very delicate problem, in this one game I’m working on, my gun system just somehow plays the wrong animations of the weapons, but it happens only in the studio environment.
What’s even more bothersome, I’ve done extensive testing, and the studio clearly prints out the current animation IDs of the animations that are supposed to be playing, yet the animations played are different from the IDs. What I mean different, they literally play animations from other weapon, but even the kinds that AREN’T IN THE GAME. I’ve tried straight up removing animation instances, yet the the remaining weapon I’m testing still plays an animation that does not have ANY reference in the whole game. I am 100% certain the gun system isn’t at fault.
I have had this issue for over 6 months, it all worked fine at first, but suddenly during one day, it just started doing this. I just though it was a roblox animator provider service issue or something, but the issue hasn’t been resolved since.
One thing I haven’t tested is trying it in another place, however I don’t think it would be very relevant as I do not wish to move the places even if it would fix the issue.
Edit: I just tested it, and it still happens even in another place under the group.
Studio footage:
Game footage:
You can see the animations look and behave very different depending on the setting.
And last to mention, there are, of course, no animation loading errors/fails. Console is completely clean (aside from junk induced from things non-relevant in this matter)
You might have a script conflicting with your animation code without knowing it. Also try searching all (ctrl + shift + f) for RunService and see if there is any studio-specific behavior.
If you don’t get any helpful results, try copying everything to a new place and stripping things out to get a minimal reproduction of the issue. If it suddenly starts working properly in studio, then you know something you pulled out of the game was causing it.
If you end up with an absolutely minimal amount of content and it still happens, then you can post it here to get a second opinion. If nobody can figure it out, then I’d recommend making a bug report for it with that minimal repro.
Okay I have tried setting the animation priority much higher, both in the animation editor and in the script by adding a custom weight argument, but it did not have any effect at the issue. I also tried reuploading the animations entirely, but it also had no effect.