I am currently working on a Throttle System for an Aircraft, and I use a NumberValue between 0-100 to track how much throttle there currently is in the engine. My goal is to set up multiple percentage-based systems based on the 0-100 NumberValue, but im having difficulty with the math.

For example: The speed of the Aircraft in LinearVelocity is a Maximum of 100, and Minimum of 40.

When the Throttle is at 0, the speed should be 40 since that is the minimum speed allowed while airborne. When Throttle is at 100, the speed should be 100 since thatâ€™s the max. And finally a Throttle of 50 would be 70 in speed, since thatâ€™s the halfway point between 40 and 100. Another example would be the Engine Sound, which has a set PlaybackSpeed based on the Amount of Throttle. 0.9 Is the minimum, 1.3 is the maximum, it links up to the 0-100 percent from the Throttle, etc etc, you get the idea.

Ive scowered the entire DevForum and couldnâ€™t find anything relating to my exact situation, the closest thing I could find is a post about getting the percentage between two numbers, but thatâ€™s more for telling the player how far theyâ€™ve gotten in a level, or for GUI. I tried it anyways and as expected, the numbers were always inaccurate on at least one side of the spectrum.

Im trying to set a percentage between two numbers, **based on the percentage of two other numbers, With a total of four numbers involved. (Two pairs of min/maxâ€™s).** Im starting to wonder if its even possible.

I drew up a demonstration incase anyone is confused, ive never been the best explainer.

Basically, all minimums and maximums must line up with the Throttle and its min/max.

Ive been stuck on this for hours, any help would be greatly appreciated!