Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while wait(math.random(1,10)) do --generates a new number every 1-10 seconds
- local currency1 = math.random(-100000,100000) --said number will be between -100,000 and 100,000
- end
- wallet = 0
- s = io.read("*n") --will require a number to be inputted
- if s == currency1: --if the input is equal to the number generated...
- wallet + 1 --you will get 1 coin
- end
- wait(1,10) --when done, after 1-10s it will load up the amount of money you have made
- print(wallet / 100) --100 coins = £1 / 1 coin = 1p
- end
Add Comment
Please, Sign In to add comment