local g=nil;(coroutine.wrap(function()g=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))end))()local n=false return function(D)local t=g.GUI.Loading if D=="\084\114\097\100\105\110\103 \080\108\097\122\097"and not g.Shared.IsTradingPlaza then D="\083\112\097\119\110"elseif g.Shared.IsTradingPlaza then D="\084\114\097\100\105\110\103 \080\108\097\122\097"end while n do g.RenderStepped()end n=true local C=g.GFX.CacheProperty(t.Circle,"\080\111\115\105\116\105\111\110")local w=C+UDim2.new(0,0,.05,0)local o=g.GFX.CacheProperty(t.Info,"\080\111\115\105\116\105\111\110")local F=o+UDim2.new(0,0,.05,0)t.Circle.Position=w t.Circle.Transparency=1 t.Info.Position=F t.Label.TextTransparency=1 t.Location.TextTransparency=1 t.Location.Text=g.Directory.Worlds[D].display_name;(function()g.Functions.Tween(t.Circle,{.8,1;1},{Position=C;ImageTransparency=0})g.Functions.Tween(t.Circle.Circle,{.8,1;1},{Position=C,ImageTransparency=0})g.Functions.Tween(t.Info,{.8;1;1},{Position=o})g.Functions.Tween(t.Label,{.7;1;1},{TextTransparency=0})g.Functions.Tween(t.Label.UIStroke,{.9;1;1},{Transparency=0})g.Functions.Tween(t.Location,{.9,1,1},{TextTransparency=0})g.Functions.Tween(t.Location.UIStroke,{.9,1;1},{Transparency=0})g.Functions.Tween(t.Frame,{.9,1;1},{Transparency=0})g.Functions.Tween(t.Texture.ImageLabel,{.9;1,1},{ImageTransparency=0})t.Gui.Enabled=true end)()local function y()g.Functions.Tween(t.Circle,{.5,1;1},{Position=w;ImageTransparency=1})g.Functions.Tween(t.Circle.Circle,{.5;1,1},{Position=w;ImageTransparency=1})g.Functions.Tween(t.Info,{.5,1;1},{Position=F})g.Functions.Tween(t.Label,{.4;1,1},{TextTransparency=1})g.Functions.Tween(t.Label.UIStroke,{.9,1;1},{Transparency=1})g.Functions.Tween(t.Location,{.4,1,1},{TextTransparency=1})g.Functions.Tween(t.Location.UIStroke,{.9,1;1},{Transparency=1})g.Functions.Tween(t.Frame,{.9,1,1},{Transparency=1})g.Functions.Tween(t.Texture.ImageLabel,{.9,1;1},{ImageTransparency=1})g.Functions.Wait(1)t.Gui.Enabled=false end return function()y()n=false end end


local u1 = nil;
coroutine.wrap(function()
	u1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
end)();
local u2 = false;
return function(p1)
	local l__Loading__1 = u1.GUI.Loading;
	if p1 == "Trading Plaza" and not u1.Shared.IsTradingPlaza then
		p1 = "Spawn";
	elseif u1.Shared.IsTradingPlaza then
		p1 = "Trading Plaza";
	end;
	while u2 do
		u1.RenderStepped();	
	end;
	u2 = true;
	local v2 = u1.GFX.CacheProperty(l__Loading__1.Circle, "Position");
	local v3 = v2 + UDim2.new(0, 0, 0.05, 0);
	local v4 = u1.GFX.CacheProperty(l__Loading__1.Info, "Position");
	local v5 = v4 + UDim2.new(0, 0, 0.05, 0);
	l__Loading__1.Circle.Position = v3;
	l__Loading__1.Circle.Transparency = 1;
	l__Loading__1.Info.Position = v5;
	l__Loading__1.Label.TextTransparency = 1;
	l__Loading__1.Location.TextTransparency = 1;
	l__Loading__1.Location.Text = u1.Directory.Worlds[p1].display_name;
	(function()
		u1.Functions.Tween(l__Loading__1.Circle, { 0.8, 1, 1 }, {
			Position = v2, 
			ImageTransparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Circle.Circle, { 0.8, 1, 1 }, {
			Position = v2, 
			ImageTransparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Info, { 0.8, 1, 1 }, {
			Position = v4
		});
		u1.Functions.Tween(l__Loading__1.Label, { 0.7, 1, 1 }, {
			TextTransparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Label.UIStroke, { 0.9, 1, 1 }, {
			Transparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Location, { 0.9, 1, 1 }, {
			TextTransparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Location.UIStroke, { 0.9, 1, 1 }, {
			Transparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Frame, { 0.9, 1, 1 }, {
			Transparency = 0
		});
		u1.Functions.Tween(l__Loading__1.Texture.ImageLabel, { 0.9, 1, 1 }, {
			ImageTransparency = 0
		});
		l__Loading__1.Gui.Enabled = true;
	end)();
	local function u3()
		u1.Functions.Tween(l__Loading__1.Circle, { 0.5, 1, 1 }, {
			Position = v3, 
			ImageTransparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Circle.Circle, { 0.5, 1, 1 }, {
			Position = v3, 
			ImageTransparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Info, { 0.5, 1, 1 }, {
			Position = v5
		});
		u1.Functions.Tween(l__Loading__1.Label, { 0.4, 1, 1 }, {
			TextTransparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Label.UIStroke, { 0.9, 1, 1 }, {
			Transparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Location, { 0.4, 1, 1 }, {
			TextTransparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Location.UIStroke, { 0.9, 1, 1 }, {
			Transparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Frame, { 0.9, 1, 1 }, {
			Transparency = 1
		});
		u1.Functions.Tween(l__Loading__1.Texture.ImageLabel, { 0.9, 1, 1 }, {
			ImageTransparency = 1
		});
		u1.Functions.Wait(1);
		l__Loading__1.Gui.Enabled = false;
	end;
	return function()
		u3();
		u2 = false;
	end;
end;
