Beam

Beam : Instance

Overview

As an instance that connects two Attachments, it automatically links the specified start and end points for effects such as lasers, electricity, or energy beams

Properties

Attachment0

Attachment

This Attachment defines the Beam's start point.

Code Samples

local Beam = script.Parent
local Workspace = game:GetService("Workspace")
local Part = Workspace:WaitForChild("Part")
local Attachment0 = Part:WaitForChild("Attachment0")

Beam.Attachment0 = Attachment0

Attachment1

Attachment

This Attachment defines the Beam's end point.

Code Samples

Color

ColorSequence

A ColorSequence can be used to control the color of the Beam as it gradually changes.

If a texture is applied to the Beam, this color is overlaid on the texture.

Code Samples

Enabled

bool

This property specifies whether the Beam is displayed.

Code Samples

EndCurve

Vector3

This property specifies the curvature of the Beam's ending section from Attachment0 to Attachment1.

Code Samples

FacingVector

Vector3

This property specifies the direction the Beam faces.

Code Samples

StartCurve

Vector3

This property specifies the curvature of the Beam's starting section from Attachment0 to Attachment1.

Code Samples

Texture

string

This property specifies the texture to be displayed on the Beam.

Code Samples

TextureLength

number

This property specifies the length of the texture applied to the Beam.

Code Samples

TextureSpeed

number

This property specifies the speed of the texture applied to the Beam.

Code Samples

Transparency

NumberSequence

A NumberSequence can be used to control the transparency of the Beam to change gradually when it appears and fades out.

Code Samples

Width0

number

This property specifies the width of the Beam's starting section.

Code Samples

Width1

number

This property specifies the width of the Beam's ending section.

Code Samples

Methods

Events

See also

VFX

Last updated