I made a timer script using a for loop and it's not working? The following is the script.
1 | local t = script.Parent |
2 |
3 | for timer = 120 , 0 , - 1 do |
4 |
5 | t.Text = timer |
6 | end |
It's a very simple script. It's also my first time using a for loop. Any ideas on why it's not working? Thanks for helping.
Your script is fine; you just have to type in wait(1) inside of the for loop.
Your problem is you're using a int value not a string value
1 | local t = script.Parent |
2 |
3 | for timer = 120 , 0 , - 1 do |
4 |
5 | t.Text = tostring (timer) |
6 | end |