SpotLight
SpotLight : Light
Overview
The SpotLight class is part of lighting system and is used to simulate focused, directional light. Unlike other lights such as PointLight or SurfaceLight, the SpotLight emits light in a conical shape, making it perfect for scenarios where the light needs to be concentrated in a specific direction.
Description
The SpotLight class is a light source that emits light in the shape of a cone, radiating outward from a single point. It is ideal for creating directional lighting effects, such as flashlights, stage lights, or headlights. The SpotLight can be attached to a BasePart or an Attachment and provides developers with control over properties like brightness, range, angle, and color to achieve specific lighting effects.
Properties
Angle
number
The Angle adjusts the light projection angle to adjust the diffusion and width of light in degrees.
Code Samples
Face
Enum.NormalId
The Face property determines the direction of the spotlight component.
Code Samples
Range
number
Range is a property defines the maximum distance from the point light at which it illuminates objects.