In order for a SurfaceLight to provide illumination, it must be the direct child of a BasePart or Attachment (the part or attachment itself must be a descendant of the Workspace). If a SurfaceLight is parented to a part, then the light will emanate from the part's selected face(s). If parented to an attachment SurfaceLight is equivalent to a SpotLight.
For more light types, please see the see also section.
1local part = Instance.new("Part")2part.Anchored = true3part.Position = Vector3.new(0, 0, 0)4part.Parent = workspace56local light = Instance.new("SurfaceLight")7light.Color = Color3.fromRGB(255, 255, 255)8light.Brightness = 19light.Range = 1610light.Parent = part