Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

XP Difference doesn't update for a TweenSize?

Asked by
pwx 1581 Moderation Voter
5 years ago

It works for the first level, but the XPDiff doesn't update, even in the loop. So eventually the bar will go over the intended size. Like so: https://gyazo.com/2ef5b5afad60a410f0a47abcd63a671a

Any help?

local starterXP = 1200
    while wait() do
        local XPDiff = Player.PlayerStats.XP.Value/starterXP*Player.PlayerStats.Level.Value
        script.Parent.PlayerInfoUI.CharFrame.InfoFrame.XPBar.Bar:TweenSize(UDim2.new(XPDiff,0,1,0), 'Out', 'Quad', .1)
        script.Parent.XPRankStat.XPBar.Bar:TweenSize(UDim2.new(XPDiff,0,1,0), 'Out', 'Quad', .1)

1 answer

Log in to vote
0
Answered by
pwx 1581 Moderation Voter
5 years ago

This was solved.

Ad

Answer this question