Need some help with math on a light

This may be pretty simple, but I am frankly not the best with math.

I am trying to make a realistic stage light, and basically the brighter the light, the less transparency of the light’s part. Basically, when value1 is 60, value2 is .4. Or when value1 is 100, value2 is 0

Value1 is the brightness%, 0 = out while 100 = full
Value2 is the transparency of the part the light is parented to

Sorry if this is confusing, I am bad at describing things.
Cheers!

From what I can tell just do

local num = (100 - brightness%)
then the part’s transparency to num

2 Likes

I honestly have no clue why I did not think of this, thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.