PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Size

Fire

float

This property determines the size of the flame particles. It must be in the range of [2, 30]. Unlike ParticleEmitter/Size, the actual size of the flames will not match 1-to-1 with the equivalent size in studs; it is somewhat smaller.

Two torches - the left has Size = 5 and the right has Size = 10

To make your environment more cohesive, try adding a PointLight as a sibling to the Fire object. Set the PointLight/Brightness and PointLight/Range proportional to this property so that larger flames produce more light.


Code Samples


Lighting Torches

This code sample adds Fire to all BasePart in the Workspace named “Torch”.

for _, child in pairs(workspace:GetChildren()) do
	if child.Name == "Torch" and child:IsA("BasePart") then
		local fire = Instance.new("Fire")
		fire.Heat = 10
		fire.Color = child.Color
		fire.SecondaryColor = Color3.new(1, 1, 1) -- White
		fire.Size = math.max(child.Size.X, child.Size.Z) -- Pick the larger of the two dimensions
		fire.Parent = child
	end
end