Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a character's Waist CFrame on the client replicate to the server?

Asked by 5 years ago

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()?

0
I'm not exactly an expert, but wouldn't the rotation replicate without you having to do anything? exxtremestuffs 380 — 5y
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. KardashevScale 110 — 5y
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 EpicMetatableMoment 1444 — 5y
0
Thanks for the reply, trying that now. KardashevScale 110 — 5y

Answer this question