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
|
  |
| Joined: 15 Dec 2012 |
| Total Posts: 534 |
|
| |
|
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
|
  |
| Joined: 15 Dec 2012 |
| Total Posts: 534 |
|
|
| 27 Aug 2014 07:51 AM |
| Thank you, but why is it color 3? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 15 Dec 2012 |
| Total Posts: 534 |
|
| |
|
|
| 27 Aug 2014 08:31 AM |
when you do color3.new it's like Color3 = Color3.new(170/255,255/255,0) |
|
|
| Report Abuse |
|
|