배우기
엔진 클래스
Fire

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


코드 샘플
조명 횃불
local Workspace = game:GetService("Workspace")
for _, descendant in Workspace:GetDescendants() do
if descendant.Name == "Torch" and descendant:IsA("BasePart") then
local fire = Instance.new("Fire")
fire.Heat = 10
fire.SecondaryColor = Color3.new(1, 1, 1)
fire.Size = math.max(descendant.Size.X, descendant.Size.Z) -- 두 차원 중 더 큰 값을 선택합니다.
fire.Parent = descendant
end
end
불 효과 전환
local part = script.Parent
local clickDetector = Instance.new("ClickDetector")
clickDetector.Parent = part
local fire = Instance.new("Fire")
fire.Parent = part
local light = Instance.new("PointLight")
light.Parent = part
local function onClick()
fire.Enabled = not fire.Enabled
light.Enabled = fire.Enabled
end
clickDetector.MouseClick:Connect(onClick)

API 참조
속성
Color
병렬 읽기
기능: Basic
Fire.Color:Color3

Enabled
병렬 읽기
기능: Basic
Fire.Enabled:boolean

Heat
복제되지 않음
병렬 읽기
기능: Basic
Fire.Heat:number

LocalTransparencyModifier
숨김
복제되지 않음
병렬 읽기
기능: Basic
Fire.LocalTransparencyModifier:number

SecondaryColor
병렬 읽기
기능: Basic
Fire.SecondaryColor:Color3

Size
복제되지 않음
병렬 읽기
기능: Basic
Fire.Size:number

size
사용되지 않음

TimeScale
병렬 읽기
기능: Basic
Fire.TimeScale:number

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.