Sample code blocks for ClockTime, TimeOfDay and SetMinutesAfterMidnight are incomplete. Missing either:
local Lighting = game:GetService(“Lighting”) at the top
Or:
From Lighting.ClockTime / Lighting.TimeOfDay
To game.Lighting.ClockTime / game.Lighting.TimeOfDay
Developer wiki posts related: