Problem with GUI resetting after death

Whenever I die it resets my GUI to old text.

while true do
	wait(20)
	script.Parent.TextColor3 = Color3.fromRGB(120, 0, 1)
	script.Parent.Text = "Night"
	wait(60)
	script.Parent.TextColor3 = Color3.fromRGB(255, 255, 255)
	script.Parent.Text = "Morning"	
end

For example, if the text has gotten to night, and I reset or die it goes to morning (Morning, is the default text already in the GUI and not the script.)

I tried putting,
if i = 1 then
Something like that.

Does anyone have any solutions? I’m not too experienced.

1 Like

Try disabling the “ResetOnSpawn” property.

4 Likes

Thank you so much! I should’ve checked sooner.

1 Like