Idle Animation not working for the server side

I am using the default roblox animate script it spawns the player in with and detecting when the player touches a part, their idle, walk, jump, fall animations all change by getting the characters default animate script and changing it using character.Animate.walk.WalkAnim.AnimationId = “rbxassetid://”

But this is happening with the idle animation:

The default roblox Animate script is a local script meaning it will only run on the client, have you tried to put everything into a ServerScript?

yes but its just really bad and its slow and gets delayed a lot

this is on animate local script:

what the server sees:

what the client sees:

now when i play it on the server side, while im idling, on the client side it does what the server was doing before i changed the animate script to server, and the server shows me completely normal