This is in a xp.Changed function. I have tried a few different ways but none of them work the way I want them too.
bob = 1/(xpneeded-xpgained)
bar.Size = UDim2.new(bob,0,0,0)
Want I am trying to do: xp bar is increased by a steady % depending the the xpgained. I said steady because in one of my failed attempts it doubled the intervals in the xp bar everytime xp was gained.
Please if you have experience with xp bars or think you know a good way I am able to do this cause you're better at maths and logic than me please give it a go. The place I am making this for is my Nature game.

3 comments
Haha... In one of my previous versions I made it + the UDim2 value... Forgot to change that, thanks.
However my equation doesn't work, know a better one?
Have you included a y offset or y scale value in the UDim2? That's if the bar isn't showing up.