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

Why doesn't this script change the text of a gui when a certain time of day comes?

There is a script in this game that makes the time of day dynamic, but whenever the ClockTime value is >= 0 it doesn't change. I may be stupid but can somebody point out what's going on here?

cc = script.Parent
f = t.Parent
t = f.TextLabel

l = game.Lighting

if l.Clocktime >= 0 then
	cc.Text = "Test"
end

And yes, this is in a local script.

1 comment

0

what? lmao i only used t just in case I needed it I never used it lol

1 answer

✓ Accepted answer

First - Remove the two variables that you arent using. Second - it is ClockTime not Clocktime

I tested it with those changed and it works

local cc = script.Parent


local l = game.Lighting

if l.ClockTime >= 0 then
    cc.Text = "Test"
end

3 comments

0

lmao did I really do that

0

Don't worry ive done it plenty of times and wastes plenty of hours

0

Also, make sure you are always looking in the output. It can help

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