1 | --Example |
2 | local inttime = 30 |
3 | for 0 , 30 , - 1 --pls say my for error in answer |
4 | inttime.value = inttime.value- 1 |
5 | end |
I want to show this in gui so i wanna use this variable in local script too
Also remember that when using for loops the first number, in this case it's 0 is the start, the second one, which is 30, is the end, and the third number, (for you it was -1, but it should of been 1) is the end.
If you're trying to make a countdown script, do something like this
1 | local start = 30 |
2 |
3 | for i = start, 0 , - 1 do |
4 | wait( 1 ) |
5 | print (i) |
6 | end |
This will countdown from 30
oh i solved that why i dont make a int value named intermission lol