2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Effects

You can create special effects by parenting special effect objects to other objects or attachments.

Light sources

Light sources let you attach lighting effects to objects or attachments. There are three types of light sources:

Point lights

<img src="https://prod.docsiteassets.roblox.com/assets/lighting-and-effects/light-sources/SpotLight-Face-Bottom.jpg" alt="" />

Spotlights

<img src="https://prod.docsiteassets.roblox.com/assets/lighting-and-effects/light-sources/SurfaceLight-Angle-0.jpg" alt="" />

Surface lights

Particle emitters

A particle emitter is an object that emits customizable 2D images (particles) into the world, useful for simulating special effects like fire, smoke, and sparks.

Beams

A beam is an object that renders a texture between two Attachment objects Beam.Attachment0 and Beam.Attachment1. By setting beam properties, you can:

Trails

A trail is an object that creates a trail between and behind two Attachment objects as they move through space. Trails can help players visualize movement, such as a sword slashing through the air, projectiles flying to their target, or footprints walking away.

By setting trail properties, you can:

Highlighting

Highlight is a visual effect which you can use to call attention to a specific object within a game, such as to provide visual feedback that the object is important and/or interactable. See Highlighting Objects for details.

<img src="https://prod.docsiteassets.roblox.com/assets/ui/highlighting-objects/OutlineTransparency-1.jpg" alt="A tree mesh against a grey background." />

Base object

<img src="https://prod.docsiteassets.roblox.com/assets/ui/highlighting-objects/Adding-Highlight.jpg" alt="The same tree mesh with a white outline and a red highlight interior." />

White outline, 50% red interior

<img src="https://prod.docsiteassets.roblox.com/assets/ui/highlighting-objects/Overview-Yellow-Outline.jpg" alt="The same tree mesh with a yellow outline and a black highlight interior." />

Yellow outline, black interior