How could I verify a player's stroke count in a golf game?


I need to make sure the server knows how many strokes a player has, but I can’t figure out a way to do it.

Right now, the server has no way of knowing how many strokes a player has unless a remote event is fired from the client. This is obviously a terrible idea, but I don’t know what else to do.

Checking to see if a ball starts to move from a stopping position on the server is out of the window, because a ball can stop in front of a sweeper arm and get pushed again.

What do I do?


We really don’t have enough context to answer this question effectively. I can only suggest maintaining the amount of strokes associated with a player on the server, so that it can be checked whenever necessary.


Move the ball on the server. When you do, add to the stroke value

Use remote events to send the direction and power vector