So the spaceship controls are completely client sided to keep the movement as smooth as possible. However, the ship needs to send it’s position to the server. I’ve been firing the RemoveEvent with RenderStepped, which is about 60 times per second. I feel like this is an unsafe amount of times to be sending a RemoveEvent to move the server, especially because I want the server to be able to support a large amount of players. How often would you suggest I fire the removeevent to update the ship’s position? I was thinking about updating 1/10th of a second to put less pressure on the server.
Thanks for reading and let me know if I need to clarify anything
There’s no need to send the position with a remote event. Just give the client NetworkOwnership and it will automatically replicate the position to the server.
This is technically the best solution, however keep in mind that you will be trusting the client wherever the spaceship is, meaning you are sacrificing some security.
I understand that the client can decide where the spaceship will go, which is why I stated “some security” will be sacrificed when setting the network ownership to the client. Like what @colbert2677 mentioned, it’s almost similar to characters and heavy server authentication would be needed. This just serves as a heads up for the marked solution.