Is replicating some movement with remote event a bad thing?

I want to replicate the direction a player look based on camera, like the video shows.

I made it possible with remote event. The player moves, send the rotation info to server, and the server fires for everyone else to update it for them.
I wanted to use this method because i have a cam part attached to the player, so others can spectate via a camera i can animate for cutscenes, but it stutters when the player floats, thats why i made this method which allowed me to anchor the player and eliminate the stutter effect.

The issue i’m concerned with is if this method could potentially lag the game when multiple players start moving. Would it be a problem?

A good way to reduce the stutter is to only send infrequent updates and interpolate them on each client. That will give you some smoothing as people wont directly be able to “see” the ping affecting the update speed.

Something like only update while player moves the camera and with a cooldown between updates, while the client that receives the event uses a tween instead of just setting the cframe?

Yes, you will get best results if you try and send an update at a consistent rate, like sending one every quarter second. Even that will look smooth. I actually have an example of this but I’ll have to DM it.

I guess that will work. I tried and the camera stopped stuttering, and the delay from the event isn’t noticeable at all. Because I only send a number corresponding to the rotation in degrees, I don’t think there is really a way for the player to do something bad with it too, apart from making the player appear to be aiming at another direction lol.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.