whoops i sent the wrong script thats for the number
xp = script.Parent.Parent.Parent.Parent.Parent.leaderstats.XP
lvl = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Level
while true do
wait()
local pie = ( xp.Value / (100+lvl.Value * 5))
script.Parent.Size = UDim2.new( pie , 0 , 0, 20)
end