Skip to content

PointLight

PointLight is a source of light that can be placed in the world.

Inherits DynamicInstance

Properties

Brightness : float

Specifies how bright/intense the light is.

Example

light.Brightness = 0.75

Color : Color

Specifies the color of the light.

Example

light.Color = Color.Random()

Range : float

Specifies how far out the light can reach.

Example

light.Range = 60

Shadows : boolean

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.