Certain animations will not replicate to the client but others will

  1. What do you want to achieve? Keep it simple and clear!
    For the player to see the animations that have loaded onto their character

  2. What is the issue?
    I hope the title is self explanatory, I have an animation class for players on the server and it loads the animation on the server side, When the local player performs an action (light attack) the animations from the server will replicate to their client, but when I load an idle animation for the player when the class is created it does not replicate to their client but they can see other player’s idle animation?

  3. What solutions have you tried so far?
    I’ve looked throughout the devforum but I just cannot find the same issue
    I know it’d be best to just load the animations on the client but I don’t really wanna rewrite my scripts but I will if I really have to

2 Likes

Loading animations on the server and replicating them to the client will usually come with latency and issues like this. Your best bet would most likely be to just load all animations on the client. Animations loaded on the client replicate to the server, and you’d eliminate potential issues like this, as well as potential latency and unwanted server load.

The thing is, is that I have event on these animations that I need to listen for such as whenever a hitbox should deploy during the animation

You probably shouldn’t use AnimationEvents for that stuff. Create a configuration module for every weapon in your game that would look something like this:

return {
	HitboxStartDelay = 0.25
        -- blah blah blah
}

This would work the same way, and would be easier to modify if the time comes where something goes wrong, so instead of having to go inside of your Animation and modify the event’s position on a keyframe as well as the EventName and Param, you can just modify that single value for the respective configuration. Then again, I could be imagining your framework in a way that is completely contrary to what it actually is.

I eventually fixed it, the idle animation for the combat style wasn’t loading on spawn, so i just made a equip weapon function and played the animation when the player equipped and it loaded on the client. Just the server animated too quick and couldn’t replicate it I guess?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.