Level.Text=upgrades.Value ProgressBarContainer.Position=UDim2.fromScale(-1+math.min(1,(points.Value%GameSettings.upgradeCost(upgrades.Value))/3),0)ProgressBarFill.Position=UDim2.fromScale(1-math.min(1,(points.Value%GameSettings.upgradeCost(upgrades.Value))/3),0)

Level.Text = upgrades.Value
ProgressBarContainer.Position = UDim2.fromScale(-1 + math.min(1, 
		points.Value % GameSettings.upgradeCost(upgrades.Value) / 3), 0)
ProgressBarFill.Position = UDim2.fromScale(1 - math.min(1, 
		points.Value % GameSettings.upgradeCost(upgrades.Value) / 3), 0)
