Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

HELP ME! Why doesn't this script work..... I think it supposed to work but it didn't, it's about M?

if game.Lighting.TimeOfDay == "11:00:00" then
	message = Instance.new("Message")
	message.Name = "DAB"
	message.Text = "ok"
	message.Parent = game.Workspace
end

2 comments

0

please don't dab

0

Do you have more to the script? This script right here checks the time once.

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.