Checking if something is reached issue

So I want to make an achievement system but i want a lot of achievements but first i thougth of trying this:

repeat
if Coins.Value >= 100 then
Coins.Value += 100
end
wait(10)
until Coins.Value >= 100

But lets say i wanted to make 500 achievements and if they are all checking 500 every 10 seconds it will lag the game i think, is there a way to do this like an event fires when something is reached. Is there a way?

1 Like

is there a way to do this like an event fires when something is reached. Is there a way?

Yes, use a Lua Signal library. I’ve been using GoodSignal and I’m very happy with it.

Not sure what you mean exactly though. Do you want lots of different effects that modify the “Coins” income rate for the player?