|
| 06 Dec 2014 11:06 PM |
| How would I create a script that spreads a certain script and a fire particle to only certain bircks named a certain thing? I can't really create a script.. I mostly edit them.. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 11:42 PM |
Not quite understanding but i think this is what you want:
local Source=game:service'Workspace'--were the parts are located local giveFireToPartsNamed='Fire'--//the name of the part in the (Source) to give a Fire instance to
for index,partsNamed in next,Source:children()do--//checks every children in (Source) if partsNamed.ClassName:find'Part'or partsNamed.ClassName:find'Union'then--//Checks if any children of (Source) is a part or union if partsNamed.Name:lower()==giveFireToPartsNamed:lower()then--//Checks if the part or union found are named with the (giveFireToPartsNamed) variable f=Instance.new('Fire',partsNamed) end end end
|
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 11:45 PM |
| What I was meaning, Is that it will slowly spread a script and a particle to other bricks that are named like jello. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2014 12:06 AM |
| You're script is kinda what I meant. But not really. |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Dec 2014 11:50 AM |
| Come on! Help me please!? I can't find anything on it on wiki. :( |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2014 01:17 AM |
| Well, no one is going to help me like always... |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Dec 2014 01:24 AM |
| so you want a fire spread script? |
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Dec 2014 01:36 AM |
well it could go something like this:
function spread(hit) if hit.Name == "" then --name of spread material in string c = Instance.new("Fire") c.Parent = hit s = script:Clone() s.Parent = hit end end script.Parent.Touched:connect(spread)
|
|
|
| Report Abuse |
|
|
|
| 13 Dec 2014 01:47 AM |
| Thanks it works. But now I just have to figure out how to slow it down. And have it change the material. Cya. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2014 04:28 AM |
| Try my model: http://www.roblox.com/SL-Spreading-Fire-item?id=191554417 It kills players and you can change the speed of the fire. |
|
|
| Report Abuse |
|
|