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 8 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 8 years ago
Edited 8 years ago

Please use a codeblock next time.|

01wait(2)
02workspace:WaitForChild("PartStorage")
03 while true do
04wait(2) -- How long in between drops
05local part = Instance.new("Part",workspace.PartStorage) part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
06part.BackSurface = "SmoothNoOutlines"
07part.TopSurface = "SmoothNoOutlines"
08part.LeftSurface = "SmoothNoOutlines"
09 part.RightSurface = "SmoothNoOutlines"
10 part.BottomSurface = "SmoothNoOutlines"
11part.FrontSurface = "SmoothNoOutlines"
12local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 5000 -- How much the drops are worth
13part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0)
14part.Size=Vector3.new(1,1,1) -- Size of the drops
15game.Debris:AddItem(part,20) -- How long until the drops expire
16end

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

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

Answer this question