SpotLight
SpotLight : Light
Overview
A SpotLight is a lighting object that emits light in a cone-shaped beam, making it ideal for highlighting the direction of light, such as in flashlights, stage lights, or vehicle headlights.
It must be parented to a BasePart or Attachment to work, and it emits light based on the specified Face direction.
Properties
Angle
number
This property sets the spread angle of the cone-shaped light beam.
Code Samples
local SpotLight = script.Parent
print(SpotLight.Angle)
Face
Enum.NormalId
This property determines which face of the parent object emits the light.
Code Samples
local SpotLight = script.Parent
print(SpotLight.Face)
Range
number
This property sets the distance over which the light is projected.
Code Samples
local SpotLight = script.Parent
print(SpotLight.Range)
Methods
Events
See also
LightingLast updated