My XP bar for some reason doesn’t scale. It was working until recently and I don’t know why it glitched. (No errors in Output either.)
script.Parent.XP.Bar.Size = UDim2.new((Player:WaitForChild("Level").XP.Value / Player.Level.Value * 100), 0, 1, 0)
Player.Level.XP.Changed:Connect(function()
script.Parent.XP.Bar.Size = UDim2.new((Player.Level.XP.Value / Player.Level.Value * 100), 0, 1, 0)
end)
(Level’s Value is 15 & XP is 500)