while true do wait()local V=game.Players.LocalPlayer local K=V.Character:WaitForChild("\072\117\109\097\110")local q=V.Character:WaitForChild("\073\110\102\101\099\116\101\100")local I=V.PlayerGui:FindFirstChild("\068\097\121")local y=V.PlayerGui:FindFirstChild("\078\105\103\104\116")if K.Value==true and game.Workspace.Events.event.Value==false then game.Lighting.FogStart=10 game.Lighting.FogEnd=120 game.Lighting.FogColor=Color3.new(0,0,0)game.Lighting.TimeOfDay="\048\048\058\048\048"elseif q.Value==true and game.Workspace.Events.event.Value==false then game.Lighting.FogStart=10 game.Lighting.FogEnd=300 game.Lighting.FogColor=Color3.new(0,0,0)game.Lighting.TimeOfDay="\048\048\058\048\048"elseif game.Workspace.Events.event.Value==true and K.Value==true then game.Lighting.FogStart=10 game.Lighting.FogEnd=35 game.Lighting.FogColor=Color3.new(0,0,0)game.Lighting.TimeOfDay="\048\048\058\048\048"elseif game.Workspace.Events.event.Value==true and q.Value==true then game.Lighting.FogStart=10 game.Lighting.FogEnd=80 game.Lighting.FogColor=Color3.new(0,0,0)game.Lighting.TimeOfDay="\048\048\058\048\048"end end


while true do
	wait();
	local l__LocalPlayer__1 = game.Players.LocalPlayer;
	local l__Human__2 = l__LocalPlayer__1.Character:WaitForChild("Human");
	local l__Infected__3 = l__LocalPlayer__1.Character:WaitForChild("Infected");
	local l__Day__4 = l__LocalPlayer__1.PlayerGui:FindFirstChild("Day");
	local l__Night__5 = l__LocalPlayer__1.PlayerGui:FindFirstChild("Night");
	if l__Human__2.Value == true and game.Workspace.Events.event.Value == false then
		game.Lighting.FogStart = 10;
		game.Lighting.FogEnd = 120;
		game.Lighting.FogColor = Color3.new(0, 0, 0);
		game.Lighting.TimeOfDay = "00:00";
	elseif l__Infected__3.Value == true and game.Workspace.Events.event.Value == false then
		game.Lighting.FogStart = 10;
		game.Lighting.FogEnd = 300;
		game.Lighting.FogColor = Color3.new(0, 0, 0);
		game.Lighting.TimeOfDay = "00:00";
	elseif game.Workspace.Events.event.Value == true and l__Human__2.Value == true then
		game.Lighting.FogStart = 10;
		game.Lighting.FogEnd = 35;
		game.Lighting.FogColor = Color3.new(0, 0, 0);
		game.Lighting.TimeOfDay = "00:00";
	elseif game.Workspace.Events.event.Value == true and l__Infected__3.Value == true then
		game.Lighting.FogStart = 10;
		game.Lighting.FogEnd = 80;
		game.Lighting.FogColor = Color3.new(0, 0, 0);
		game.Lighting.TimeOfDay = "00:00";
	end;
end;
