-- 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
✓ ANSWER ACCEPTED
How do i add fire to my tycoon dropper?
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
