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 do you change Fire Properties?

Previous Thread :: Next Thread 
Zelphurx is not online. Zelphurx
Joined: 15 Dec 2012
Total Posts: 534
27 Aug 2014 07:42 AM
So, I have this script right now:

HFire = Workspace.Zelphurx.Head.Fire
HFire.Color = Instance.new = [0, 0, 0]

I want to make the fire on my head turn Black. I am somewhat new to scripting. Can someone please tell me what I did wrong?

Report Abuse
Zelphurx is not online. Zelphurx
Joined: 15 Dec 2012
Total Posts: 534
27 Aug 2014 07:48 AM
Bump
Report Abuse
tyzone is not online. tyzone
Joined: 16 Aug 2008
Total Posts: 1726
27 Aug 2014 07:50 AM
"Instance.new" is used to create new items.
The first line is fine, but the second one would be:

HFire.Color = Color3.new(0,0,0)

Use parenthesis for this kind of thing, too. Brackets have another use (looking for something in a table).
Report Abuse
Zelphurx is not online. Zelphurx
Joined: 15 Dec 2012
Total Posts: 534
27 Aug 2014 07:51 AM
Thank you, but why is it color 3?
Report Abuse
tyzone is not online. tyzone
Joined: 16 Aug 2008
Total Posts: 1726
27 Aug 2014 07:56 AM
Because it uses three parameters (the three 0's we just put there being the parameters).

Color on a screen is basically coded with three colors: Red, Green, and Blue. (1,0,0) would be red, while (1,1,0) would be yellow and (1,1,1) would be white.

There is also Vector3, which you use to define the position of a part, the scale of a mesh, or the coordinates of a, well, vector. Its three parameters are X, Y and Z.

Also, when you want to change the color of a brick, you have to use something else (you can't change the color of a brick as precisely as the color of fire). You have to say something like:

brick.BrickColor = BrickColor.new("Bright green")

Trying to change the color of a brick without a script will show you a list of colors and their respective names. Just copy the name into the script and it'll change the brick's color accordingly.
Report Abuse
Zelphurx is not online. Zelphurx
Joined: 15 Dec 2012
Total Posts: 534
27 Aug 2014 07:58 AM
Thanks. Also, how do you change the value of other properties? I tried this, but it failed.

HFire = Workspace.Zelphurx.Head.Fire
HFire.Heat = new(100000)

What do I need to put to change the heat?
Report Abuse
tyzone is not online. tyzone
Joined: 16 Aug 2008
Total Posts: 1726
27 Aug 2014 08:07 AM
Heat is a single number, and you don't need to add anything like "new" when you want to change a number.

HFire.Heat = 100000

But I'm pretty sure there's a maximum heat wayyy below 100000 anyway.

You also need to add quotation marks if you want to change a string (aka text). If you wanted to change the name of your fire object, it would be:

HFire.Name = "This is my fire! There are many like it, but this one is MINE!"
Report Abuse
Zelphurx is not online. Zelphurx
Joined: 15 Dec 2012
Total Posts: 534
27 Aug 2014 08:18 AM
-SOLVED- Thank you.
Report Abuse
kibawolf47 is not online. kibawolf47
Joined: 12 May 2012
Total Posts: 869
27 Aug 2014 08:31 AM
when you do color3.new it's like
Color3 = Color3.new(170/255,255/255,0)
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