-- Decompiled with the Synapse X Luau decompiler.


local u1 = tick() - 5;
return function()
	if tick() < u1 + 0.32 then
		return;
	end;
	u1 = tick();
	local l__TweenService__1 = game:GetService("TweenService");
	for v2, v3 in pairs(game:GetService("CollectionService"):GetTagged("WindowLight")) do
		local v4, v5 = pcall(function()
			coroutine.wrap(function()
				delay(math.random(0, 10) / 100, function()
					l__TweenService__1:Create(v3.Lightning, TweenInfo.new(0.03, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 3, true, 0), {
						Brightness = 2
					}):Play();
					v3.Attachment.Thunder.Pitch = 1 + math.random(-100, 100) / 1000;
					v3.Attachment.Thunder:Play();
					if v3.Parent:FindFirstChild("Sally") then
						v3.Parent:FindFirstChild("Sally"):Destroy();
					end;
				end);
			end)();
		end);
		if v5 then
			warn(v5);
		end;
	end;
	local v6, v7, v8 = pairs(game.Workspace:GetDescendants());
	while true do
		local v9, v10 = v6(v7, v8);
		if not v9 then
			break;
		end;
		if v10.Name == "Skybox" then
			l__TweenService__1:Create(v10, TweenInfo.new(0.15, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, true, 0), {
				Color = Color3.fromRGB(72, 70, 85)
			}):Play();
		end;
		if v10.Name == "Lightning" and v10:IsA("BasePart") then
			l__TweenService__1:Create(v10, TweenInfo.new(0.03, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 3, true, 0), {
				Brightness = 2
			}):Play();
		end;
		if v10.Name == "Thunder" and v10:IsA("Sound") then
			v10.Pitch = 1 + math.random(-100, 100) / 1000;
			v10:Play();
		end;	
	end;
end;
