Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Local parts and leaderstats - how to do it in a save way?

Asked by 4 years ago

Hi folks,

I think this may be a common question by noobs, but I found no solution yet. I want to create a game in which players get local visible parts, which the players can collect (each player has his own parts). If the player collects a local part, the part is destroyed and the player should get money for it, which is added to the leaderstats.

My idea was: 1. create local parts by a local script (clientside) 2. create a collecting script (clientside) 3. add money value to leaderstats (serverside)

How can I realize this with some sort of security? I think, it´s not a good idea to call a remote event for each collected item, as this may happen multiple times per second per user.

Any short idea for this, I think, often used scenario?

Answer this question