Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to trigger a Event with TimeOfDay?

Asked by
Vezious 310 Moderation Voter
9 years ago
game.Lighting.TimeOfDay:Changed(function()
local Time = game.Lighting.TimeOfDay
if Time == "18:00:00" then 
print("ITS 18!")
elseif Time == "06:00:00" then
print("ITS 6")
end
end)

What's Wrong with this script?

0
Your problem is line 1; 'Changed' is not a Method; It is a Event Property of 'Lighting', not 'TimeOfDay'. :P TheeDeathCaster 2368 — 9y

Answer this question