Capturing ingame movement into animation?

Hello, i am making a FPS game and i ran into a problem while doing the server side, some of the first person viewmodel movement arent animations but for example sin waves so i wondered if there’s a way to capture that movement and use it as animation

i tried running the same sin script on server but it was lagging the server, and when i tried making it completely animation i couldnt get that good results

any help is appreciated

1 Like

I’d argue that it is easier to just run the sine function on the client instead.
Animations should be handled client-side anyway

the sine function is part of the sprint “animation” and i cant get that on the server side, because its splitted in to, viewmodel and another viewmodel that is on the server character, and when player runs then it looks weird from view of other players