Above is my characters structure. Everything in the “Snake” folder’s CFrame is updated constantly on the client, however on the server is not replicating.
Updating CFrame on the server is off the table because of latency, and it’ll cause performance issues.
I rarely work with projects where I have to alter the character, so I am a bit stuck. How would I achieve my desired result?
Is there any part that can be in a fixed position relative to the player that you could weld, and have the IK behave around it? e.g. The head of the snake or a middle point
What I ended up doing was not the most recommended option but in my case it worked
Character animations/visuals of movements work on CLIENT
Every 0.2 seconds it will fire a remote and the server will store the LastPosition of all body parts of the player and move it accordingly on the server
Server validates the updated position in regards of the lastposition (magnitude and stress checks to prevent exploiting)
Every 0.2 seconds the server fires back to all clients with an updated table of all players positions
The client will loop through all received positions of players and update accordingly, calculating the movements animations / fine details for smoothness