Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- for i=1,10,1 do
- lamp = lamps[i]
- if (percentage > ((i - 1) * 10)) then
- lamp.setColor(0xFF0000)
- else
- lamp.setColor(0x000000)
- end
- end
- print(percentage)
- os.sleep(1)
- tankinfo = tank.getTanks("unknown")
- percentage = tankinfo[1].amount / tankinfo[1].capacity * 100
- end
Advertisement
Add Comment
Please, Sign In to add comment