-- Decompiled with the Synapse X Luau decompiler.


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;
