zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 02:33 AM |
| I want to clone fire into stuff with the same name 'Part' but I don't know how? I was wondering if I make a table of the parts and if the Name is Part than clone a fire into it? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 02:35 AM |
local parts = {} -- Leave empty for i,v in next, workspace:GetChildren() do if v.Name == "Part" then table.insert(parts, v:Clone()) end end |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 02:38 AM |
What about the fire? Do I do:
local fire = script.Fire table.insert(fire, v:Clone())
|
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 02:42 AM |
| Wait no that would be wrong I'm pretty sure :P but what would I do? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 02:44 AM |
Do you only want to clone fire?
local parts = {} -- Leave empty for i,v in next, workspace:GetChildren() do if v.Name == "Part" and v:FindFirstChild("Fire") then table.insert(parts, v.Fire:Clone()) end end
|
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 02:45 AM |
| Yes I want to clone fire into the bricks, also... would it be possible to make it look inside models for Parts? There are about 20 different sections in this and it would save a ton of time. |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 02:46 AM |
| Also the fire is only inside the script, it's not inside all of the bricks |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 02:51 AM |
Would this work? also it doesn't solve the going through models problem still :/
local parts = {} -- Leave empty for i,v in next, script.Parent:GetChildren() do if v.Name == "Part" and script.Fire then table.insert(parts, script.Fire:Clone()) end end |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 03:01 AM |
If I wanted to make it clone fire every time the Humanoid would change would this work?
Function Damaged() script script.Parent.Humanoid.Health.Changed:connect(Damaged) |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 03:07 AM |
| True so I would probably want to make the script disabled for like .5 seconds or something, maybe more.. |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 03:13 AM |
| Can you do a line like "if 20 > 50 - 30+ then" like 30 or more? |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 03:14 AM |
| Yea but I want the fire to increase as it takes more damage... also when it reaches 0 for all of the parts to explode (would that be :Destroy() right?) |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 12 Jan 2013 10:59 AM |
| No I mean like 'if 100 > 120 - 20+ then' |
|
|
| Report Abuse |
|
|