of     1   

TheDragonGuardian
#182465566Tuesday, January 26, 2016 11:14 PM GMT

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).
chimmihc
#182466760Tuesday, January 26, 2016 11:31 PM GMT

game.Lighting.TimeOfDay is a string. This line "Time = game.Lighting.TimeOfDay" is equal to: Time = "15:01:00" Also, in this "TimeText.Text = ""..Time", the "".. is completely pointless and just uses up extra memory.
TheDragonGuardian
#182467796Tuesday, January 26, 2016 11:44 PM GMT

How do you suggest I fix it, then? (Also thanks for that tip.)
chimmihc
#182475509Wednesday, January 27, 2016 1:34 AM GMT

TimeText = script.Parent while true do TimeText.Text = game.Lighting.TimeOfDay wait(1) end
RyIock
#182475570Wednesday, January 27, 2016 1:34 AM GMT

while pie then cook end function eat then other stuff lua here lua there end
TheDragonGuardian
#182477063Wednesday, January 27, 2016 1:54 AM GMT

@chimmihc Ah, thank you.

    of     1