-- ALEX WAS HERE LOL


local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait();
end;
return function(p2, p3, ...)
	local xp = ... 
	local f = v1.Shared.MasteryXPToLevel(xp)
	
	if f < 100 then

	else
		p2.Progress.Bar.Size = UDim2.new(1, 0, 1, 0);
		p2.Progress.Level.Text = ''
		p2.Progress.Level2.Text = ''
		return;
	end;
	local v10 = math.clamp(xp / v1.Shared.MasteryLevelToXP(f +1), 0, 1);
	v1.Functions.FastTween(p2.Progress.Bar, {
		Size = UDim2.new(v10, 0, 1, 0)
	}, { 0.2, "Quad", "Out" });
	p2.Progress.Level.Text = f
	p2.Progress.Level2.Text = f + 1
end;
