I need this issue fixed ASAP along with other issues with this timer. Whenever I die or I reset my character, the timer resets too. How do I prevent this?
01 | local daytextbox = script.Parent |
02 | local day = 01 |
03 | daytextbox.Text = day |
04 | while true do |
05 | wait( 1 ) |
06 | day = day + 1 |
07 | daytextbox.Text = tostring (day) |
08 | if day = = 30 then |
09 | day = 01 |
10 | end |
11 | end |
I am certain this is a GUI. If I am wrong this answer won't work. Go over to the ScreenGui that the script is in (technically it is in a textlabel or something, go to the ScreenGui). Then make sure that "ResetOnSpawn" is off. That should fix your problem.