local g=(require(((game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")):FindFirstChild("\076\111\097\100\101\114\085\116\105\108\115",true)).Parent)).load(script)local N=game:GetService("\082\117\110\083\101\114\118\105\099\101")local V=g("\066\108\101\110\100")local m=g("\077\097\105\100")return function(g)local a=m.new()local z=Instance.new("\066\111\111\108\086\097\108\117\101")z.Value=false local O=V.Spring(V.Computed(z,function(g)return g and 1 or 0 end),35)local s=V.Computed(O,function(g)return 1-g end)a:GiveTask(((V.New("\070\114\097\109\101"))({Size=UDim2.new(.5,0,.5,0);BackgroundColor3=Color3.new(.9,.9,.9);AnchorPoint=Vector2.new(.5,.5),Position=UDim2.new(.5,0,.5,0);BackgroundTransparency=s;Parent=g,[V.Children]={(V.New("\085\073\083\099\097\108\101"))({Scale=V.Computed(O,function(g)return.8+.2*g end)});(V.New("\085\073\067\111\114\110\101\114"))({CornerRadius=UDim.new(.05,0)})}})):Subscribe())local e=5 a:GiveTask(N.RenderStepped:Connect(function()z.Value=(os.clock()/e)%1<.5 end))return function()a:DoCleaning()end end


local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)

local RunService = game:GetService("RunService")

local Blend = require("Blend")
local Maid = require("Maid")

return function(target)
	local maid = Maid.new()

	local isVisible = Instance.new("BoolValue")
	isVisible.Value = false

	local percentVisible = Blend.Spring(Blend.Computed(isVisible, function(visible)
		return visible and 1 or 0
	end), 35)

	local transparency = Blend.Computed(percentVisible, function(percent)
		return 1 - percent
	end)

	maid:GiveTask((Blend.New "Frame" {
		Size = UDim2.new(0.5, 0, 0.5, 0);
		BackgroundColor3 = Color3.new(0.9, 0.9, 0.9);
		AnchorPoint = Vector2.new(0.5, 0.5);
		Position = UDim2.new(0.5, 0, 0.5, 0);
		BackgroundTransparency = transparency;
		Parent = target;

		[Blend.Children] = {
			Blend.New "UIScale" {
				Scale = Blend.Computed(percentVisible, function(percent)
					return 0.8 + 0.2*percent
				end);
			};
			Blend.New "UICorner" {
				CornerRadius = UDim.new(0.05, 0);
			};
		};
	}):Subscribe())

	local PERIOD = 5
	maid:GiveTask(RunService.RenderStepped:Connect(function()
		isVisible.Value = os.clock()/PERIOD % 1 < 0.5
	end))

	return function()
		maid:DoCleaning()
	end
end
