Roblox UtilitiesDevlHub Roblox Documentation

Class

SurfaceLight

Inherits
Light › Instance › Object
Memory category
Instances

A light source that emits illumination of a specified color and brightness from a face for a specified range.

A SurfaceLight is a light source that emits illumination of a specified Light.Color and Light.Brightness from a SurfaceLight.Face for a specified SurfaceLight.Range.

In order for a SurfaceLight to provide illumination, it must be the direct child of a BasePart or Attachment (the part or attachment itself must be a descendant of the Workspace). If a SurfaceLight is parented to a part, then the light will emanate from the part's selected face(s). If parented to an attachment SurfaceLight is equivalent to a SpotLight.

For more light types, please see the see also section.

See Also#

Properties 3#

AnglefloatThe angle of which the light is shone from the SurfaceLight.ReadSafe
FaceNormalIdSets the side of the parent that the SurfaceLight comes from.ReadSafe
RangefloatThe distance from the SurfaceLight's face that will illuminate.ReadSafe

Angle: float#

ReadSafe

The angle of which the light is shone from the SurfaceLight.

Face: NormalId#

ReadSafe

Sets the side of the parent that the SurfaceLight comes from.

Range: float#

ReadSafe

The distance from the SurfaceLight's face that will illuminate.

Inherited members#

Inherited from Light 4
Properties (4)

Brightness, Color, Enabled, Shadows

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed