LocalTransparencyModifier equations incorrect

Was using this page as a resource for my own transparency modifier function and the explanation equation appears to written incorrectly.

local clientTransparency = part.Transparency + (1 * part.localTransparencyModifier)

3 Likes

The page: https://developer.roblox.com/en-us/api-reference/property/BasePart/LocalTransparencyModifier

The correct formula:

realTransparency = 1 - (1 - part.Transparency)*(1 - part.LocalTransparencyModifier)

source: Camera does not account for .LocalTransparencyModifier

2 Likes