Im trying to make a game that you earn a currency every minute. And im using a datastore that i found from a plugin, this way everything it saves are child of a script in ServerScriptService. I put the currency in it as a NumberValue and put a script in it. But whenever i try to make it work it just adds it only once and not always
while true do
script.Parent.Value = script.Parent.Value + 100
wait(60)
end
I tried using smaller numbers like 5 and it always stays at 100.