So I have a textlabel called EXPBar and I want it to increase size as the number value increase
I have another textlabel called CardEXP and in it has CurrentEXP EXPMax and this script, the CurrentEXP and EXPMax are Number values,
Here's the script;
local cardlevel = script.Parent.Parent.Parent.CardLevel:WaitForChild("CardLv")
local cardleveltext = script.Parent.Parent.Parent.CardLevel
local currentexp = script.Parent:WaitForChild("CurrentEXP")
local cardexptext = script.Parent
local levelbar = script.Parent.Parent:WaitForChild("EXPBar")
local expmax = script.Parent:WaitForChild("EXPMax")
while true do
wait(0.1)
local EXP = currentexp * expmax
levelbar.Size = UDim2.new(EXP, 0, 1, 0)
end
I want the size to increase as the current exp value get's higher and closer to the exp max value, please help, this is all I got

2 comments
Find your level bar using (if it's in starter gui) game.StarterGui.levelbar and find the coordinate responsible for size, the rest is unknown to me
Try doing local EXP = currentexp / expmax instead of local EXP = currentexp * expmax