Class · inherits Light
SpotLight
A light source that emits light directionally in the shape of a cone with a spherical base.
About SpotLight
A Spotlight emits light of a specified Color and
Brightness in the shape of a cone with a spherical
base. This object is ideal for directional light sources like flashlights
and headlights.
Range controls the distance of illumination and
Angle defines the angle of light emission from the
cone's apex as illustrated below.
A spotlight must be a direct child of a BasePart or Attachment
and will exhibit the following behavior:
When the spotlight is parented to a
BasePart, theFaceproperty determines the face of the part from which light emanates.Although
Attachmentsdon't have faces, theFaceproperty determines the axis of the attachment from which light emanates; -Z is front, +X is right, +Y is top, etc.
See also SurfaceLight and PointLight.
Properties 3
Angle
: floatThe angle of which the light is shone from the SpotLight.Face
: NormalIdSets the side of the parent that the SpotLight comes from.Range
: floatThe size of the area that the SpotLight will illuminate.
SpotLight also has every member of Light. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.