|
| 24 Nov 2014 06:17 PM |
without doing something ugly and innefficient like this:
local p={workspace.Wood:children''[1],workspace.Parts:children''[2]} btw there are 15 parts
for _,o in pairs(p)do for _,v in pairs(p)do spawn(function()repeat wait''until (o.Position-v.Position).magnitude>=5 local f=Instance.new('Fire',v)f:clone''.Parent=o break end) end end |
|
|
| Report Abuse |
|
|
Bladesmc
|
  |
| Joined: 18 Jan 2012 |
| Total Posts: 193 |
|
|
| 24 Nov 2014 06:28 PM |
Please go to the "Scripting Helpers" thread. That is the place for getting help. It works, too! I've used it many times in the creation of many projects.
Roses are red. Violets are red. Grass is red. Trees are red. I set your garden on fire... |
|
|
| Report Abuse |
|
|
| |
|
| |
|