XP Difference doesn't update for a TweenSize?
Asked by
pwx 1581
6 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?
3 | local XPDiff = Player.PlayerStats.XP.Value/starterXP*Player.PlayerStats.Level.Value |
4 | script.Parent.PlayerInfoUI.CharFrame.InfoFrame.XPBar.Bar:TweenSize(UDim 2. new(XPDiff, 0 , 1 , 0 ), 'Out' , 'Quad' , . 1 ) |
5 | script.Parent.XPRankStat.XPBar.Bar:TweenSize(UDim 2. new(XPDiff, 0 , 1 , 0 ), 'Out' , 'Quad' , . 1 ) |