Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do i add fire to my tycoon dropper?

Asked by 7 years ago

-- I'm trying to find out how to add fire to my parts that are being dropped by my tycoon dropper. Can anyone help me? wait(2) workspace:WaitForChild("PartStorage") while true do wait(2) -- How long in between drops local part = Instance.new("Part",workspace.PartStorage) part.BrickColor=script.Parent.Parent.Parent.DropColor.Value part.BackSurface = "SmoothNoOutlines" part.TopSurface = "SmoothNoOutlines" part.LeftSurface = "SmoothNoOutlines" part.RightSurface = "SmoothNoOutlines" part.BottomSurface = "SmoothNoOutlines" part.FrontSurface = "SmoothNoOutlines" local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 5000 -- How much the drops are worth part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0) part.Size=Vector3.new(1,1,1) -- Size of the drops game.Debris:AddItem(part,20) -- How long until the drops expire end

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

Please use a codeblock next time.|

wait(2) 
workspace:WaitForChild("PartStorage")
 while true do 
wait(2) -- How long in between drops 
local part = Instance.new("Part",workspace.PartStorage) part.BrickColor=script.Parent.Parent.Parent.DropColor.Value 
part.BackSurface = "SmoothNoOutlines" 
part.TopSurface = "SmoothNoOutlines" 
part.LeftSurface = "SmoothNoOutlines"
 part.RightSurface = "SmoothNoOutlines"
 part.BottomSurface = "SmoothNoOutlines" 
part.FrontSurface = "SmoothNoOutlines" 
local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 5000 -- How much the drops are worth 
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0) 
part.Size=Vector3.new(1,1,1) -- Size of the drops 
game.Debris:AddItem(part,20) -- How long until the drops expire
end

So you're asking how to add the "Fire" to a part? It's actually easy.

Instance.new("Fire",part)  --Add this after where you define what local part is.
Ad

Answer this question