--[[
	rbxassetid://757425958 --midnight
	rbxassetid://759830238 --early hours
	rbxassetid://759820270 --morning
	rbxassetid://759829474 --afternoon
	rbxassetid://759821278 --evening
	
	ai.Image = 
	bi.Image = 
	ci.Image = 
	di.Image = 
	ei.Image = 

--]]


local g = game.Lighting:GetMinutesAfterMidnight()/60

if (g >= 22 and g <= 0) or (g <= 0 and g < 2) then
	--print("aaaaa")
	ai.Image = a
	bi.Image = a
	ci.Image = a
	di.Image = a
	ei.Image = a
	selected = "A"
elseif (g >= 2 and g < 6) then
	--print("b")
	ai.Image = b
	bi.Image = b
	ci.Image = b
	di.Image = b
	ei.Image = b
	selected = "B"
elseif (g >= 6 and g < 11) then
	--print("c")
	ai.Image = c
	bi.Image = c
	ci.Image = c
	di.Image = c
	ei.Image = c
	selected = "C"
elseif (g >= 11 and g < 17) then
	--print("ddddd")
	ai.Image = d
	bi.Image = d
	ci.Image = d
	di.Image = d
	ei.Image = d
	selected = "D"
else
	--print("e")
	ai.Image = e
	bi.Image = e
	ci.Image = e
	di.Image = e
	ei.Image = e
	selected = "E"
end

script.Parent.SplashFade.Disabled = false
if selected == "A" then
	script.Parent.SplashLoopA.Disabled = false
elseif selected == "B" then
	script.Parent.SplashLoopB.Disabled = false
elseif selected == "C" then
	script.Parent.SplashLoopC.Disabled = false
elseif selected == "D" then
	script.Parent.SplashLoopD.Disabled = false
else
	script.Parent.SplashLoopE.Disabled = false
end
