Here is my dilemma: I want to make "discoverable" pearls in the new game I'm developing. Each time you find a pearl, it gives you +1 pearl in the leaderstats. The issue is I don't want the same player benefiting from the same pearl multiple times (i.e. standing on top of it and getting as many pearls as they want). I tried two things.
- I made it so that the pearl does not add to your leaderstats if you already touched it. -The problem: After one player has touched it, other players can not, and that pearl is useless on the server
- I made the pearls client-side, being inserted into the players camera. -The problem: This worked fine in "play solo", but as soon as I started a live version of the game it failed to work at all.
So in conclusion, I need a script that gives +1 leaderstats ONLY if it is that player's first time touching the part. The brick needs to remember who touched it and prevent that player from befitting from touching it again. I am stumped.

1 comment
option 1, set random points. option 2, only spawn a pearl when there are no players around e.g. < 20 studs do not add pearl.