I need my script, in the end, to be exactly (or as close to) 30 seconds as possible... Here is the part I am talking about:
1 | local thing = game.Workspace.SecondsValue.Value -- This is 30 in a NumValue so I can change it later |
2 |
3 | for i = 1 , thing do |
4 | wait( 1 ) |
5 | thing = thing - 1 |
6 | script.Parent.Parent.TextLabel.Text = tostring (thing) |
7 | end |
Hi, the problem is just that the wait must be in the end of the statement just like this:
1 | local thing = game.Workspace.SecondsValue.Value -- This is 30 in a NumValue so I can change it later |
2 |
3 | for i = 1 , thing do |
4 | thing = thing - 1 |
5 | script.Parent.Parent.TextLabel.Text = tostring (thing) |
6 | wait( 1 ) |
7 | end |