Lvl gui is broken

So I’ve made a lvl gui, but now it doesn’t work. So I’ve made a new one. But with big numbers like 350/400 it goes bigger than the box.

Normal Lvl:

Broke Lvl:

Script:

local Player = game.Players.LocalPlayer 
local Leaderestats = Player:WaitForChild("leaderstats")

local Lvl = Leaderestats:WaitForChild("Lvl") 
local Exp = Leaderestats:WaitForChild("Exp") 

local Indicator = script.Parent.Parent:WaitForChild("IndicatorFrame")

local LvlLabel = script.Parent.Parent:WaitForChild("LvLabel")
local ExpLabel = script.Parent.Parent:WaitForChild("ExpLabel")

Indicator:TweenSize(UDim2.new(Exp.Value/100, 0, 1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.5) 
Lvl.Changed:Connect(function(NewValue) 
	wait(0.1) 
	Indicator:TweenSize(UDim2.new(Exp.Value/100, 0, 1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.5)
end)

Exp.Changed:Connect(function(NewValue)
	if Exp.Value >= Lvl.Value * 100 then 
		Lvl.Value += 1 
		Exp.Value = 0 
	end 
	
	wait(0.1) 
	Indicator:TweenSize(UDim2.new(Exp.Value/100, 0, 1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.5) 
end)

Please help, and have a great day.

It looks like this should be
Exp.Value/(Lvl.Value*100)
To equate to
Exp/MaxExp

1 Like