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

ROBLOX ScreenGui text isn't changing and no errors pop up, help?

if game.Lighting.ClockTime > 5 and game.Lighting.ClockTime < 6.5 then script.Parent.Text = "Showers" if game.Lighting.ClockTime > 6.5 and game.Lighting.ClockTime < 12 then script.Parent.Text = "Breakfast" end end

I'm trying to get it to change the text of a screenGui, yet no errors come up and the text doesn't change. Any idea?

2 answers

If that is the whole script, then you need to have a loop that listens for the change within the lightning. I would do a while true do loop with a wait(1) statement to not crash your studio.

You're only running the script once upon the studio being open. Meaning that it only checks for all of those things once upon the games start. For it to constantly be checking I recommend putting all of this in a while true do loop.

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