Hello, i’m currently trying to make a script that makes the player always face the mouse in a ServerSided way. I’ve tried searching up a solution multiple times, creating an ungodly amount of scripts attempting to make this work but haven’t yet gotten one to work.
If anyone could give me a system idea i could implement or any code samples to get this to work that’d be super helpful for my project. Thanks you for reading!
Assuming you’re using a standard Roblox character, you don’t have to create any server-side code for this to work. Since the position & orientation of your character is typically always replicated anyway!
Just have a localscript on each client that sets the orientation of your character ideally every frame pointing from the character’s primarypart position to mouse.Hit’s position (make sure each position has the same Y value or the character will tilt up/down and cause potential flinging issues).
1 Like