while true do
	if game.Lighting.TimeOfDay.Value == 14    then do
		game.ServerStorage.Rich:Clone().parent = game.Workspace
	
	if game.Lighting.TimeOfDay == 6:00 then do
	game.ServerStorage.Rich:Clone().Parent = game.Workspace	
	end
	end
	end
	end
end

How to fix this?

1 comment

0

TimeOfDay is a string. Your code at line 5 is a syntax error. 6:00 isn't a value, colon's are used to call functions. Also, why do you have 2 extra end statements? You also need to wait in your while statement. Use 'wait'