-- Decompiled with the Synapse X Luau decompiler.


client = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
service = nil;
gTable = nil;
return function(p1)
	local l__Parent__1 = script.Parent.Parent;
	local l__PlayerGui__2 = service.PlayerGui;
	if p1.Time then

	end;
	local v3 = client.UI.Get("HintHolder", nil, true);
	if not v3 then
		local v4 = service.New("ScreenGui");
		local v5 = client.UI.Register(v4);
		local v6 = service.New("ScrollingFrame", v4);
		client.UI.Prepare(v4);
		v5.Name = "HintHolder";
		v6.Name = "Frame";
		v6.BackgroundTransparency = 1;
		v6.Size = UDim2.new(1, 0, 0, 150);
		v6.CanvasSize = UDim2.new(0, 0, 0, 0);
		v6.ChildAdded:Connect(function(p2)
			if #v6:GetChildren() == 0 then
				v6.Visible = false;
				return;
			end;
			v6.Visible = true;
		end);
		v6.ChildRemoved:Connect(function(p3)
			if #v6:GetChildren() == 0 then
				v6.Visible = false;
				return;
			end;
			v6.Visible = true;
		end);
		v3 = v5;
		v5:Ready();
	end;
	local l__Frame__7 = v3.Object.Frame;
	if client.UI.Get("Notif") then
		local v8 = 30;
	else
		v8 = 0;
	end;
	if client.UI.Get("TopBar") then
		local v9 = 40;
	else
		v9 = 0;
	end;
	l__Frame__7.Position = UDim2.new(0, 0, 0, v8 + v9 - 35);
	local v10 = l__Frame__7:children();
	l__Parent__1.Position = UDim2.new(0, 0, 0, -100);
	l__Parent__1.Frame.msg.Text = p1.Message;
	local l__X__11 = l__Parent__1.Frame.msg.TextBounds.X;
	spawn(function()
		local v12 = Instance.new("Sound", service.LocalContainer());
		v12.SoundId = "rbxassetid://489390072";
		wait(0.1);
		v12:Play();
		wait(0.8);
		v12:Destroy();
	end);
	local function v13(p4, p5)
		p4 = p4 and 0;
		local v14 = #l__Frame__7:children();
		for v15, v16 in pairs(l__Frame__7:children()) do
			if v16 ~= p5 then
				v16.Position = UDim2.new(0, 0, 0, (v15 + p4) * 28);
				if v15 ~= v14 then
					v16.Size = UDim2.new(1, 0, 0, 28);
				end;
			end;
		end;
	end;
	local v17 = -1;
	v13(-1);
	l__Parent__1.Parent = l__Frame__7;
	if #l__Frame__7:children() > 5 then
		v17 = -2;
	end;
	UDim2.new(0, 0, 0, (#l__Frame__7:children() + v17) * 28);
	v13(-1);
	if #l__Frame__7:children() > 5 then
		local v18 = l__Frame__7:children()[1];
		v13(-2, v18);
		v18:Destroy();
	end;
	wait(p1.Time and 5);
	if l__Parent__1 and l__Parent__1.Parent then
		v13(-2, l__Parent__1);
		l__Parent__1:Destroy();
	end;
end;
