I am having a few issues writing code for my automatic money giver which adds onto the balence of money a player has and I was going to ask an expert but i cant so im asking you guys. Since you guys are pro at coding. I need a money giver which gives virtual money "fake" money (not real) to all the players playing and gives then money when they kill another player, 50 coins for the kill and 10 coins a minute. can I pls have some help? I do have a calculator script though.
function calculate(num)
return (num+math.random(-9,9))*math.random(1,10)/math.random(1,10)
end
calculate(1)
print(calculate(20))
for i = 1, 10 do print(calculate(10)*calculate(10)) end
function addSum(num, min)
if num<=min then
return num
end
return num+addSum(num-1, min)
end
So yeah... Help would be apriciated. Oh and by the way I have done it through GUIs so the money has to apear onscreen when I open up a menu Called "Shop" .

1 comment
Scerzy, its not working! somethings wrong with it.