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
VFXLast updated