iBroski
|
  |
| Joined: 06 Jul 2011 |
| Total Posts: 100 |
|
|
| 14 Aug 2012 03:16 PM |
function OnTouched(hit) local find = hit:FindFirstChild("BodyVelocity") local findfire = hit:FindFirstChild("Fire")
if find then find:Destroy() if findfire then findfire.Enabled = true wait(2) wait(3) findfire:destroy() end
wait() end
end script.Parent.Touched:connect(OnTouched)
I get zero output. |
|
|
| Report Abuse |
|
|
TaslemGuy
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 12174 |
|
|
| 14 Aug 2012 03:17 PM |
:Destroy is not a method of anything.
Neither is
:destroy
|
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 03:28 PM |
@TaslemGuy
Waitwut? They got rid of BasePart::Destroy? Really? .____. |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 03:30 PM |
function OnTouched(hit) local find = hit.Parent:FindFirstChild("BodyVelocity") local findfire = hit.Parent:FindFirstChild("Fire")
if find then find:Destroy() if findfire then findfire.Enabled = true wait(5) findfire:Destroy() end
wait() end
end script.Parent.Touched:connect(OnTouched) |
|
|
| Report Abuse |
|
|
iBroski
|
  |
| Joined: 06 Jul 2011 |
| Total Posts: 100 |
|
|
| 14 Aug 2012 03:31 PM |
| Then how should I delete both the fire and BodyVelo objects? |
|
|
| Report Abuse |
|
|