PointLight

PointLight : Light

Overview

The PointLight class is a specific type of light that provides localized illumination. The PointLight is most commonly used for creating ambient or decorative lighting effects.

Description

The PointLight class is a light source that emits light spherically from a single point in all directions. It is ideal for simulating non-directional light sources, such as light bulbs, torches, or fireballs. The PointLight can be attached to a BasePart or an Attachment and allows developers to control properties like brightness, range, color, and shadows to create realistic lighting effects in their games.

Properties

Range

number

Range is a property defines the maximum distance from the point light at which it illuminates objects.

Code Samples

local PointLight = script.Parent

print(PointLight.Range)

Methods

Events