Animated Particle Constellations in Roblox (Luau)

This tutorial shows how to build a particle constellation effect in Roblox. Floating particles connect with glowing lines when they are close, forming dynamic constellations. You can download the scene here: particles.rbxl or follow the steps below.


1. Overview Diagram

Movement Bounds

Each dot is a particle. Lines (Beams) appear only when particles are close enough.


2. Where to Put the Script

  1. Open Roblox Studio
  2. Go to StarterPlayer → StarterPlayerScripts
  3. Insert a LocalScript
  4. Name it Constellation

3. Configuration Variables

BOUNDS (3D Box)

local PARTICLE_COUNT = 40
local RANGE = 25
local SPEED = 4
local BOUNDS = Vector3.new(60, 40, 60)

Particles bounce invisibly inside the bounding box.


4. Creating Particles

Neon Ball Beam

p.Shape = Enum.PartType.Ball
p.Material = Enum.Material.Neon
p.Anchored = true
p.CanCollide = false

5. Movement Logic

Velocity Direction

Velocity reverses when a particle hits the edge of the bounds.


6. Drawing Constellation Lines

Close → Strong Far → Faded

beam.Transparency = NumberSequence.new(dist / RANGE)

Farther particles produce more transparent lines.


7. Final Result

This effect is ideal for menu backgrounds, sci-fi scenes, or abstract visuals.

8. Ideas to Extend