Having a bit of trouble with this very basic script, I have a feeling it's right in front of me.
I have a script that changes the time of day every second, and I also have a TextLabel in a GUI, and there's a script inside it;
TimeText = script.Parent
Time = game.Lighting.TimeOfDay
while true do
TimeText.Text = ""..Time
wait(1)
end
The TextLabel's text becomes "15:01:00" (the time starts at 15:00:00 for my game) then stops. I've checked and the time of day continues changing, but the text stops after one minute (which only takes one second for my script). |