Help with client and server for a Tennis Game

I’m trying to make a tennis game like RS Tennis on Roblox. I’m wondering if I should script the balls on the client or server. The balls will be hit back and forth between players.

1 Like

If it was up to me, the most logical thing would be to script the tennis ball on the server since it needs to be visible for everyone.

However, then the issue occurs related to the delay between server and client communications. One possible workaround for this would be to adjust the SetNetworkOwner() to the player who is receiving the ball right after it has been hit by the player opposite of them. This should hopefully dissipate - if not - minimalize the delay contention.

Personally I would script anything visual on the client, the physics of the ball should be checked on the server but not the movement and object of the ball, that would just use up unnecessary server computation.

Not only that but the feedback could feel a bit off, i.e when you hit the ball you wanna see it travel immediately, whereas if the server handled this there would be the latency between you hitting the ball and it moving, ever so slight but still noticeable depending on the players ping.

This is what I did for any FPS project I did anyway.

Would this still be applicable if I were to script a doubles mode?