Hello, i'm doing a disaster game and i want when the disaster is in action there is a hint to tell when the disaster will end here the script:
1 | countdownTime = 20 -- How long until disaster comes |
2 | countdowntime 2 = 40 |
3 | disasterTime = 40 -- How many second is the disaster |
4 |
5 | countdownMessage = "The next disaster will occur in %s seconds." |
6 | disasterMessage = "Disaster %s" |
7 | countdownmessage 2 = "The Disaster will end in %s Seconds! Stay Alive!" |
Any kind of help is appreciated!
01 | countdownTime = 20 -- How long until disaster comes |
02 | countdowntime 2 = 40 |
03 | disasterTime = 40 -- How many second is the disaster |
04 | while true do |
05 | for i = countdownTime, 0 , - 1 do |
06 | countdownMessage = "The next disaster will occur in " ..i.. "seconds." |
07 | wait( 1 ) |
08 | end |
09 |
10 | disasterMessage = "Disaster %s" |
11 |
12 | for i = countdownTime 2 , 0 , - 1 do |
13 | countdownMessage 2 = "The current disaster will end in " ..i.. "seconds." |
14 | wait( 1 ) |
15 | end |
16 | end |