PointLight
Inherits from DynamicInstance
PointLight is a source of light that can be placed in the world.
Summary
Properties
Brightness:floatColor:ColorRange:floatShadows:bool
Properties
Brightness
PointLight.Brightness: float
Specifies how bright/intense the light is.
Example
light.Brightness = 0.75
Color
PointLight.Color: Color
Specifies the color of the light.
Example
light.Color = Color.Random()
Range
PointLight.Range: float
Specifies how far out the light can reach.
Example
light.Range = 60
Shadows
PointLight.Shadows: bool
Specifies whether this light emits shadows or not.
Example
light.Shadows = true
Shadows
Having many lights with shadows enabled will cause a massive hit in performance. Consider minimizing the amount of lights with shadows to ensure every player is enjoying your place with minimal framerate issues.