Beam

Beam : Instance

Overview

๋‘ ๊ฐœ์˜ Attachment ์‚ฌ์ด๋ฅผ ์—ฐ๊ฒฐํ•˜๋Š” ์ธ์Šคํ„ด์Šค๋กœ, ์‹œ์ž‘์ ๊ณผ ๋์ ์„ ์ง€์ •ํ•˜๋ฉด ์ž๋™์œผ๋กœ ์—ฐ๊ฒฐ๋˜๋ฉฐ, ๋ ˆ์ด์ €, ์ „๊ธฐ, ์—๋„ˆ์ง€ ๋น” ๊ฐ™์€ ํšจ๊ณผ๋ฅผ ๋งŒ๋“ค ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.

Properties

Color

ColorSequence

Beam์ด ์–ด๋–ค ์ƒ‰์ƒ์œผ๋กœ ์ ์ง„์ ์œผ๋กœ ํ‘œ์‹œ๋ ์ง€ ColorSequence๋ฅผ ์ด์šฉํ•˜์—ฌ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Beam์— ํ…์Šค์ฒ˜๊ฐ€ ์ ์šฉ๋œ ๊ฒฝ์šฐ, ํ•ด๋‹น ํ…์Šค์ฒ˜ ์œ„์— ์ด ์ƒ‰์ƒ์ด ์˜ค๋ฒ„๋ ˆ์ด๋˜์–ด ํ‘œํ˜„๋ฉ๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.Color = ColorSequence.new(Color3.fromRGB(255, 0, 0))

Enabled

bool

Beam์˜ ํ‘œ์‹œ ์—ฌ๋ถ€๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.Enabled = false

ColorTexture

string

Beam์— ํ‘œํ˜„ํ•  ์ƒ‰์ƒ ํ…์Šค์ฒ˜๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.ColorTexture = "ovdrassetid://1234"

ColorTextureLength

number

Beam์— ์ ์šฉ๋œ ์ƒ‰์ƒ ํ…์Šค์ฒ˜์˜ ๊ธธ์ด๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.ColorTextureLength = 10

ColorTextureSpeed

number

Beam์— ์ ์šฉ๋œ ์ƒ‰์ƒ ํ…์Šค์ฒ˜์˜ ์†๋„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.ColorTextureSpeed = 5

AlphaTexture

string

Beam์— ํ‘œํ˜„ํ•  ์•ŒํŒŒ ํ…์Šค์ฒ˜๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.AlphaTexture = "ovdrassetid://1234"

AlphaTextureLength

number

Beam์— ์ ์šฉ๋œ ์•ŒํŒŒ ํ…์Šค์ฒ˜์˜ ๊ธธ์ด๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.AlphaTextureLength = 10

AlphaTextureSpeed

number

Beam์— ์ ์šฉ๋œ ์•ŒํŒŒ ํ…์Šค์ฒ˜์˜ ์†๋„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

Transparency

NumberSequence

Beam์ด ์ƒ์„ฑ๋˜๊ณ  ์‚ฌ๋ผ์งˆ ๋•Œ NumberSequence๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํˆฌ๋ช…๋„๊ฐ€ ์ ์ง„์ ์œผ๋กœ ๋ณ€ํ™”ํ•˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.Transparency = NumberSequence.new(0.5)

Attachment0

Attachment

Beam์˜ ์ถœ๋ฐœ์ ์„ ์ •์˜ํ•˜๋Š” Attachment์ž…๋‹ˆ๋‹ค.

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

Beam์˜ ๋„์ฐฉ์ ์„ ์ •์˜ํ•˜๋Š” Attachment์ž…๋‹ˆ๋‹ค.

Code Samples

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

Beam.Attachment1 = Attachment1

StartCurve

Vector3

Beam์˜ Attachment0์—์„œ Attachment1 ๋ฐฉํ–ฅ์œผ๋กœ ์ด์–ด์ง€๋Š” ์‹œ์ž‘ ๋ถ€๋ถ„์˜ ๊ณก๋ฅ ์„ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.StartCurve = Vector3.new(0, 0, 2)

EndCurve

Vector3

Beam์˜ Attachment0์—์„œ Attachment1 ๋ฐฉํ–ฅ์œผ๋กœ ์ด์–ด์ง€๋Š” ์ข…๋ฃŒ ๋ถ€๋ถ„์˜ ๊ณก๋ฅ ์„ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.EndCurve = Vector3.new(0, 0, -2)

Segments

number

Determines how many line segments are used to render the beam curve. Higher values produce a smoother curve at the cost of performance.

Code Samples

Width0

number

Beam์˜ ์‹œ์ž‘ ๋ถ€๋ถ„ ๋„ˆ๋น„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.Width0 = 10

Width1

number

Beam์˜ ๋ ๋ถ€๋ถ„ ๋„ˆ๋น„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.Width1 = 10

FacingVector

Vector3

Beam์ด ๋ฐ”๋ผ๋ณด๋Š” ๋ฐฉํ–ฅ์„ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Beam = script.Parent

Beam.FacingVector = Vector3.new(1, 1, 0)

Methods

Events

See also

VFX

Last updated