-- 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
Please use a codeblock next time.|
01 | wait( 2 ) |
02 | workspace:WaitForChild( "PartStorage" ) |
03 | while true do |
04 | wait( 2 ) -- How long in between drops |
05 | local part = Instance.new( "Part" ,workspace.PartStorage) part.BrickColor = script.Parent.Parent.Parent.DropColor.Value |
06 | part.BackSurface = "SmoothNoOutlines" |
07 | part.TopSurface = "SmoothNoOutlines" |
08 | part.LeftSurface = "SmoothNoOutlines" |
09 | part.RightSurface = "SmoothNoOutlines" |
10 | part.BottomSurface = "SmoothNoOutlines" |
11 | part.FrontSurface = "SmoothNoOutlines" |
12 | local cash = Instance.new( "IntValue" ,part) cash.Name = "Cash" cash.Value = 5000 -- How much the drops are worth |
13 | part.CFrame = script.Parent.Drop.CFrame - Vector 3. new( 0 , 1 , 0 ) |
14 | part.Size = Vector 3. new( 1 , 1 , 1 ) -- Size of the drops |
15 | game.Debris:AddItem(part, 20 ) -- How long until the drops expire |
16 | end |
So you're asking how to add the "Fire" to a part? It's actually easy.
1 | Instance.new( "Fire" ,part) --Add this after where you define what local part is. |