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.
Each dot is a particle. Lines (Beams) appear only when particles are close enough.
Constellation
local PARTICLE_COUNT = 40
local RANGE = 25
local SPEED = 4
local BOUNDS = Vector3.new(60, 40, 60)
Particles bounce invisibly inside the bounding box.
p.Shape = Enum.PartType.Ball
p.Material = Enum.Material.Neon
p.Anchored = true
p.CanCollide = false
Velocity reverses when a particle hits the edge of the bounds.
beam.Transparency = NumberSequence.new(dist / RANGE)
Farther particles produce more transparent lines.