Connect Coin Pickups to Roblox Leaderstats
Wire a shared pickup system to a per-player coin balance and display it in the player list.
Keep awarding and display separate
Put a few anchored coin parts in CoinPickups. Award coins on the server after identifying the Player from the character that touched the pickup. Mark the coin unavailable before changing the balance, because another limb can touch it immediately. Restore visibility on a timer.
Use the leaderstats convention
The folder name must be exactly leaderstats. Put an IntValue called Coins inside it. Mirror the Player's Coins attribute into that IntValue when the attribute changes. Other coin sources can update the attribute without knowing how the player list works.
Check the multiplayer behavior
Touch a single coin with two clients close together. Only the first player to reach an available coin should receive it. Confirm that the coin returns after the timer and that each player sees their own balance. For saved currency, load and save it from a server controlled data store.
Make the first pickup easy to inspect
Create a CoinPickups folder and place two anchored parts above a test floor. Keep the parts apart so a player walking toward one does not touch the second. Give them a distinctive material and color so they are easy to see when testing their return timer. Place the pickup handler in ServerScriptService and use Play. Touch a single coin and note when it disappears. Wait for it to return, then touch it again. The same part can stay in the scene throughout the test. That keeps its location and artwork stable while its availability changes. A collectible that hides should be set up so an invisible part does not obstruct the player's route.
Record the reward before changing presentation
A touch event can arrive for several body parts during one contact. Check eligibility at the top of the handler, resolve the player from the touching model and mark the coin unavailable before awarding anything. Changing the state first keeps later events from granting duplicate coins while the pickup disappears. Keep the state per collectible. One global flag would make grabbing a coin in one lane lock every other coin in the place. A decorative effect is useful feedback, but the availability flag is what decides whether another award can happen. Once the timer ends, restore the visibility you stored at startup and allow the next touch.
local previous = player:GetAttribute("Coins") or 0
player:SetAttribute("Coins", previous + 1)
Mirror the balance to the built-in player list
Keep the Player attribute as the balance for this session. The leaderstats script can create a folder named exactly leaderstats and a Coins IntValue inside it. Each time the attribute changes, copy its new value to the IntValue. This makes the list a view of the balance rather than a second balance to maintain. Check it by awarding one coin and reading both values in Explorer. They should match after the event. If the attribute changes but the number in the list does not, check the exact folder and value names and verify that the attribute listener was connected for the current player.
Add a second way to earn one coin
As a test, place a prompt on a reward stand and grant one coin from its handler using the same attribute. Watch the built-in list update without changing the leaderstats script. Before turning this into a public reward stand, define who can use it and how often. The point of the test is that different systems can write through the same balance. When you add spending later, let the server read and update that same value. Avoid subtracting from the display IntValue directly, because the next attribute change could overwrite the visible amount and leave your spending rule out of sync.
Test simultaneous collection
Run two clients and ask both players to approach the same coin. One player should receive the award and the other should see the coin become unavailable. Collect two different coins at once to check that each independent pickup still works. Wait for a coin to return while someone stands on its location. Depending on the part setup, a new touch may require stepping away and back. Decide whether that fits your course before changing the collection detection. If you later save currency across visits, keep persistence in a dedicated server script and test data loading independently. The linked pickup and display examples are sufficient for measuring a single play session.