Incomplete Lighting code samples

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:
https://developer.roblox.com/api-reference/property/Lighting/ClockTime
https://developer.roblox.com/api-reference/property/Lighting/TimeOfDay
https://developer.roblox.com/api-reference/function/Lighting/SetMinutesAfterMidnight

2 Likes