Currently I want to update the experience bar I have every time that the exp increases. The issue with this is that I cannot seem to increase it the way that tweening works for it to be progressive and I’m wondering if a switch to lerp would be better.
task.wait(1)
-- \\ Player-Related Variables // --
local Player = game.Players.LocalPlayer
local Stuff = Player:WaitForChild("YourInnerSelf")
local QI = Stuff:WaitForChild("QigongEXP")
local QiReq = Stuff:WaitForChild("QiLevelNeeded")
-- \\ GUI-Related Variables // --
local ProBar = script.Parent.ProgressionBar.ActualMovingBar
-- \\ Functions // --
QI.Changed:Connect(function()
if QI.Value == QiReq.Value then
ProBar.Size = UDim2.new(16, 12)
end
if QI.Changed then
ProBar:TweenSize(
UDim2.new += UDim2.new(0,1.625, 0, 0),
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
2,
false,
nil
)
end
end)
I would like to know the possible solution I could do to this.