I need advice on how I can make an aiming system where the player's arms will follow the mouse

In order to have the player “aim” their weapon smoothly and without latency using their mouse, would it be necessary to handle the movement in a local script and a server script, to minimize any input delay? For example, the player would have a local script constantly updating their position (only on their client) to face them towards their mouse, and every fraction of a second their mouse position is fired to the server to update it for others? Is there a better way to do this? Thank you.

1 Like

The client has network ownership of the LocalPlayer’s Character entirely. Any form of positioning or motion that you apply to body parts on the client will get replicated and the server will accept it.

You can set Motor6D.Transform each frame to make dynamic animations like the one you’re describing.

1 Like

why didn’t I think of that lol. Thanks for your help man