So I'm doing something similar to what Prison Life does, with the events thing. My code isn't working.
Here is the code:
local text = script.Parent.Text
local clocktime = game.Lighting.ClockTime
while wait() do
if clocktime == 6 then
text = "Breakfast"
elseif clocktime == 8 then
text = "Free Time"
end
if clocktime == 12 then
text = "Lunch"
elseif clocktime == 14 then
text = "Yard Time"
end
if clocktime == 17 then
text = "Dinner Time"
elseif clocktime == 18 then
text = "Free Time"
end
if clocktime == 22 then
text = "Lights Out"
end
end
send help

3 comments
Is ClockTime a Value?
no clocktime is lighting
ClockTime is a number value that is the current hour of the game, the lighting changes depending on the hour