I have a script that constantly updates the player's Waist.C0 to the position of the Camera's CFrame.LookVector.Y. It works perfectly on the client, but how would I get it to replicate to the server so that other players can see the changes? I've tried combining :FireServer() with RunService:RenderStepped() to pass the camera's current LookVector position to the server, but this method causes excess lag. Is there a simpler way to get the changes to replicate, without constantly calling :FireServer()?

4 comments

0

I'm not exactly an expert, but wouldn't the rotation replicate without you having to do anything?

0

@exxtremestuffs That's the thing, the game is filteingenabled, and a serverscript wouldn't be able to access the currentCamera's local LookVector position.

1

Send the angle / vector to the server and have the server fire all clients to update the specific player's C0 to the angle / vector. Best to use tweening

0

Thanks for the reply, trying that now.