Hi! Im making a multiplayer vs game and i need to know how to make a mechanic where players collect gems and the numbers are stored on a global variable to be judged later. Ive tried looking at tutorials but somehow none of them actually show any sort of mechanic similar to what i need which seems like a pretty common mechanic and it behaves the same as a coin counter.

