if game.Lighting.TimeOfDay == "11:00:00" then
message = Instance.new("Message")
message.Name = "DAB"
message.Text = "ok"
message.Parent = game.Workspace
end
COMMUNITY QUESTION
HELP ME! Why doesn't this script work..... I think it supposed to work but it didn't, it's about M?
1 answer
you should use .Changed
game.Lighting.Changed:connect(function()
if game.Lighting.TimeOfDay == "11:00:00" then
message = Instance.new("Message")
message.Name = "DAB"
message.Text = "ok"
message.Parent = game.Workspace
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
please don't dab
Do you have more to the script? This script right here checks the time once.