How to manage coins?

Hello, I have seen that in some Roblox games the coins that a player collects are only visible to this player.

That is, when I enter “X” game I start collecting coins, but these coins can only be seen and collected by me, the other players cannot see or collect my coins and I cannot see and collect the coins of other players

How can I do that? Or how can I search for this topic?

Thank you

You can make client-sided instances. The mechanic which allows you to get the coins is controlled with a localscript.

Have you considered reading the dev tutorial?

before that, do you know scripting ? if so, do you know the difference between a client script and a server script ?

if i got you correct you can see some collicatable coins that other can’t see, and vice-versa

all you need to do is create the coin locally by using a LocalScipt other than spawning them with ServerScripts

1 Like

Thanks, I was confused as I’ve also seen games where some enemies spawn (render) when a player approaches them, but only to that player and not other players and only render to other players if they approach that enemy, I think that this case is not local.

Thanks again

spawning the zombies will be using a ServerScirpt but you will need to set its transparency and hide decals and other stuff using a LocalScript

1 Like