Hey, I have been coding a level system for some reason I can’t fix that the exp bar goes outside the window I have tried using math.clamp but I have no idea how it works I have also tried using this forum post but I just can’t get it to work this is my code
here is an explication of math.clamp.
which means you’re not using it correctly.
It’s not necessary to clamp the value between 0,1 since you’re already dividing it’s value by the max xp amount. Instead clamp it between 0 and expmax, that should fix it.