This is a repost because my last post got buried and wasn't ever answered.
So basically as the title says, I'm making something similar to what Prison Life does with the "Yard Time" & "Dinner". My script isn't working and I have been trying to figure out why but I can't seem to find out.
Script:
local text = script.Parent.Text
local clocktime = game.Lighting.ClockTime
while wait() do
if clocktime == 6 then
script.Parent.Text = "Breakfast"
elseif clocktime == 8 then
script.Parent.Text = "Free Time"
end
if clocktime == 12 then
script.Parent.Text = "Lunch"
elseif clocktime == 14 then
script.Parent.Text = "Yard Time"
end
if clocktime == 17 then
script.Parent.Text = "Dinner Time"
elseif clocktime == 18 then
script.Parent.Text = "Free Time"
end
if clocktime == 22 then
script.Parent.Text = "Lights Out"
end
end
(p.s., This script uses clocktime because I have a day/night cycle I made that also uses clocktime. Although you can change between TimeOfDay and Clocktime, I prefer ClockTime.)

1 comment
did my answer work