generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How would I be able to make this script?

Previous Thread :: Next Thread 
46827193 is not online. 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 is not online. oysi93
Joined: 27 Apr 2008
Total Posts: 12469
05 Aug 2010 09:25 PM
Instance.new("Fire", PATH)
Report Abuse
46827193 is not online. 46827193
Joined: 07 Sep 2008
Total Posts: 5300
05 Aug 2010 09:37 PM
Path would be...?
Report Abuse
oysi93 is not online. 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 is not online. 46827193
Joined: 07 Sep 2008
Total Posts: 5300
05 Aug 2010 09:40 PM
I'm confused. ._.
Report Abuse
oysi93 is not online. 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 is not online. 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 is not online. oysi93
Joined: 27 Apr 2008
Total Posts: 12469
05 Aug 2010 10:07 PM
Put it inside the function? =P
Report Abuse
46827193 is not online. 46827193
Joined: 07 Sep 2008
Total Posts: 5300
05 Aug 2010 10:18 PM
wat
Report Abuse
killjoy37 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Derthmonuter is not online. Derthmonuter
Joined: 01 Feb 2008
Total Posts: 3607
07 Aug 2010 01:04 PM
Yeah.
Report Abuse
46827193 is not online. 46827193
Joined: 07 Sep 2008
Total Posts: 5300
07 Aug 2010 01:12 PM
kthxbai
Report Abuse
Xtreme101 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image