thank you, this helped.First of all, you need an animfix, cause calculations of player's animation are different on client and server: client updates player's animation every frame, but server updates it every tick ( frame != tick ), so you need to sync server and client behavior.
Secondly, you need to find find out is player desyncing atm or not, recommend you take a look at server side and figure out how desync actually works, you will have a lot of useful information.
And the last ( the most difficult part ), you should spot player's desync direction. At this moment you can just bruteforce angles, but also you can calculate more correct bruteforce angles ( look at the server side again and again )
Rest is up to you