Animation replication

I am a Thai language, not very good, I do Replication system, but like it would not have the hope to disturb everyone to comment.

Hello, no problem!
if you use a “Character Class” it will already do this for you, no need for your script.
The character movement does this.

You can find out more here:
Networking and Multiplayer > Detailed explanation of Character Movement Component

Cheers!