I have Animations that I am loading onto the Humanoid and playing. For some reason, these animations will only play for a second on the server but for the client, they are playing normally and do not stop. The Animations are created server-side, but loaded and played by the client. This is not a priority issue as raising all priorities to Action did not solve the issue, there are no other animations in the game set to Action.
I’m trying to figure out why these animations are playing for the rest of the server for only a second and then stop replicating, but on the client, everything behaves just fine. Has anyone else experienced something like this before?
I have this problem. Sometimes, animations just don’t even play on the server, at all. It’s been a problem for a while now. It used to be a super bad problem, and it seems like checking if the animation is playing before stopping it helped a little but, but it just might be placebo.
Do you think there may be an issue with your animations looping perhaps?
I would strongly suggest you just create, load, and play your animations on the client. If possible, create Animation objects in studio beforehand in some sort of folder the client has access to, and then load and play animations from there. I don’t see a good reason to create Animation objects while the game is playing.
AnimationTracks are being created by the client already, the Animation object that is loaded onto the Humanoid is the only thing created by the server, which should not be a problem. When I say “Created by the server” I mean that they already exist in a folder and are replicated down by the server.
How would this be a looping issue if the client is playing it fine but the server is not, something must be wrong with the replication.
This is a major animation problem on Roblox, i believe it happens in a lot of games, Even in Arsenal. And it happened to me before.
How many animations are you loading to the humanoid? Before I load over 10 animations while writing my custom animate script (Walking, idle, jump etc.) and it often happens. When I print out the animations from the humanoid on the server, some of them are missing. I fixed it by only calling LoadAnimation once, and eventually change the animation and reload it whenever it needs to be changed.
I also received a solution from someone (I can’t find the thread) which basically you load all animations on both client and server side.
I need to play multiple animations at once so this is not an option, and I don’t see why this is a problem is the first place. Animations should be replicated just fine from the client to the server but it seems that this is a roblox bug that requires some quirky workaround?
Yes, I think this is indeed a Roblox bug, but can you tell me what’s your scenario and how many animations are you playing? If it’s something like multiple tool animations (Such as gun shooting, reloading) you can just use one animation to finish off it.
Gun shooting, gun holding, gun reloading, gun scoping, gun patroling, gun crouching, and gun crouch walking. Sure many of these cases allow me to have a single anim playing but for example, if I hold while crouching I’m going to need 2 animations playing at the same time. In my case, your workaround is not practical.
That’s similar to my case, I have 2 idle animations, reload, shoot and basic idle, walk, crouch and crouch walking. I used less than 5 Load Animations for all of that, for character basic animation, I only used one. For weapons, I used too. It acts like 2 layers, while one layer handle idle, another layer handles shoot, reload etc. One layer represents one LoadAnimation, You might need few more layers for your case but it should solve since you’re loading less animations, at least it has been solved for me.
But none of my animations are able to keep playing, even when I only have one. Changing the amount of animations I load hasn’t affected the problem, it just made my life harder.