I currently have a coin spawning system that is completely server-sided. However, I see games like Pet Simulator X spawn coins on the client. Why do they do this?
Also, how would a client-sided system work? Does a server script keep track of the coordinates of the coins, and whenever a new coin spawns it sends a remote to the client?
You shouldn’t spawn coins client-sided because that could easily be abused.
I believe Pet Sim X spawns coins server-sided then makes it for that player visible.
When a player initially joins there are no coins on the map, then coins start spawning. Doesn’t this have to be done on the client side since players who are already in the server can see the coins?