46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
|
| 05 Aug 2010 09:21 PM |
| For my new game I'm planning to make, a person touches a button to make the door slide up. I'm working on that part. Then the person touches another button beyond the door and the door closes. The person takes one step and fire is in front of them. How would I be able to insert fire using a script? |
|
|
| Report Abuse |
|
|
oysi93
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 12469 |
|
|
| 05 Aug 2010 09:25 PM |
| Instance.new("Fire", PATH) |
|
|
| Report Abuse |
|
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
| |
|
oysi93
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 12469 |
|
|
| 05 Aug 2010 09:39 PM |
| What part you want to have fire... =P |
|
|
| Report Abuse |
|
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
| |
|
oysi93
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 12469 |
|
|
| 05 Aug 2010 09:42 PM |
local Fire = Instance.new("Fire", Workspace.Part)
Creates a Fire inside Workspace.Part, and declares 'Fire' as the fire, so you can change it's color, or whatever! =D |
|
|
| Report Abuse |
|
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
|
| 05 Aug 2010 09:53 PM |
| But how would I be able to use it with an onTouch button? :o |
|
|
| Report Abuse |
|
|
oysi93
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 12469 |
|
|
| 05 Aug 2010 10:07 PM |
| Put it inside the function? =P |
|
|
| Report Abuse |
|
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
| |
|
killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 05 Aug 2010 10:25 PM |
... Poor oysi.
function onTouch(hit if hit.Parent:findFirstChid("Humanoid") ~= nil then local Fire = Instance.new("Fire") Fire.Parent = Workspace.Brick
Pretty much what oysi said except this the way I would do it. |
|
|
| Report Abuse |
|
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
|
| 07 Aug 2010 12:49 PM |
| How would I be able to control the fire's properties? |
|
|
| Report Abuse |
|
|
rsdogy
|
  |
| Joined: 27 Feb 2008 |
| Total Posts: 442 |
|
|
| 07 Aug 2010 12:59 PM |
As osyi said... "local Fire = Instance.new("Fire", Workspace.Part)" That would create or Instantiate a new object called Fire on that part. So to control the fire would be.
Workspace.Part.Fire.PropertieHere
Hope This helps ~Rsdogy |
|
|
| Report Abuse |
|
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
|
| 07 Aug 2010 01:02 PM |
So it would be...
local Fire = Instance.new("Fire", Workspace.Part)" Workspace.Part.Fire.Size = 20
isIrite? |
|
|
| Report Abuse |
|
|
| |
|
46827193
|
  |
| Joined: 07 Sep 2008 |
| Total Posts: 5300 |
|
| |
|
Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
|
| 07 Aug 2010 01:16 PM |
I didn't know you could do
Instance.new(object, parent)
0.o |
|
|
| Report Abuse |
|
|