Class
SpotLight
A light source that emits light directionally in the shape of a cone with a spherical base.
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#
Inherited members#
Inherited from Light 4
Properties (4)
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild