Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Time resets when I die. How to fix?

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?

local daytextbox = script.Parent
local day = 01
daytextbox.Text = day
while true do
	wait(1)
	day = day + 1
	daytextbox.Text = tostring(day)
	if day == 30 then
		day = 01
	end
end

4 comments

0

is it a local script

0

No, It is a normal script

0

Where is the script located?

0

Try disabling ResetOnSpawn (i think its called that) or try disabling the gui

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.