How to scale a tween's time based on speed instead of duration?

Simply put, if I was to tween a NumberValue to have a value of zero 0,

I would want it to have taken 15 seconds to reach empty when the NumberValue is at 100
or when the number value is at 50, then it would take 7.5.

Any help?

Just: x/100 * 15, that simple.

50/100 * 15 = 7.5, 25/100 * 15 would be 3.75. And, so on

2 Likes

Providing your tween’s easing style is linear you’d just need to make use of the equation speed = distance/time and rearrange for time, which would be time = distance/speed.