OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 03:52 PM |
fire1 = game.Workspace.firepart1.Fire fire2 = game.Workspace.firepart2.Fire while true do if game.Workspace.Flag.BrickColor = "Really blue" then fire1.Color = BrickColor.new(0;0;255) then fire1.SecondaryColor = BrickColor.new(0;0;255) if game.Workspace.Flag.BrickColor = "Really red" then fire2.Color = BrickColor.new(255;0;0) then fire2.Secondary = BrickColor.new(255;0;0) end
I was hoping that when the flags color was "Really blue" it would change the color of the fire to really blue(which is 0;0;255) and if the flag color was "Really red" it would change the color of the fire to really red(which is 255;0;0)
I cant really give anything else. Any help would be really appreciated. |
|
|
| Report Abuse |
|
|
Cakins
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 307 |
|
|
| 23 Feb 2012 03:57 PM |
fire1 = workspace.firepart1.Fire fire2 = workspace.firepart2.Fire
while wait() do if workspace.Flag.BrickColor == "Really blue" then fire1.Color = BrickColor.new(0, 0, 255).Color fire1.SecondaryColor = BrickColor.new(0, 0, 255).Color else if workspace.Flag.BrickColor == "Really red" then fire2.Color = BrickColor.new(255, 0, 0).Color fire2.Secondary = BrickColor.new(255, 0, 0).Color end end |
|
|
| Report Abuse |
|
|
Cakins
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 307 |
|
|
| 23 Feb 2012 03:58 PM |
Whoops; mah bad.
fire1 = workspace.firepart1.Fire fire2 = workspace.firepart2.Fire
while wait() do if workspace.Flag.BrickColor == "Really blue" then fire1.Color = BrickColor.new(0, 0, 255).Color fire1.SecondaryColor = BrickColor.new(0, 0, 255).Color else if workspace.Flag.BrickColor == "Really red" then fire2.Color = BrickColor.new(255, 0, 0).Color fire2.Secondary = BrickColor.new(255, 0, 0).Color end end end |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 03:58 PM |
fire1 = game.Workspace.firepart1.Fire fire2 = game.Workspace.firepart2.Fire while true do if game.Workspace.Flag.BrickColor == BrickColor.new("Really blue") then fire1.Color = BrickColor.new(0;0;255) fire1.SecondaryColor = BrickColor.new(0;0;255) elseif game.Workspace.Flag.BrickColor == BrickColor.new("Really red") then fire2.Color = BrickColor.new(255;0;0) fire2.Secondary = BrickColor.new(255;0;0) end wait(); --Prevent crash end
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
Cakins
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 307 |
|
|
| 23 Feb 2012 04:02 PM |
We are also both wrong, as we forgot to change the:
fire2.Secondary
To:
fire2.SecondaryColor |
|
|
| Report Abuse |
|
|
skater16
|
  |
| Joined: 28 Nov 2007 |
| Total Posts: 3802 |
|
|
| 23 Feb 2012 04:03 PM |
fire1 = Workspace.firepart1.Fire fire2 = Workspace.firepart2.Fire
while wait() do if Workspace.Flag.BrickColor = BrickColor.new("Really blue") then fire1.Color = BrickColor.new("Bright blue") fire1.SecondaryColor = BrickColor.new("Bright blue")
elseif Workspace.Flag.BrickColor = BrickColor.new("Really red") then fire2.Color = BrickColor.new("Bright red") fire2.Secondary = BrickColor.new("Bright red") end wait() end |
|
|
| Report Abuse |
|
|
skater16
|
  |
| Joined: 28 Nov 2007 |
| Total Posts: 3802 |
|
|
| 23 Feb 2012 04:04 PM |
fire1 = Workspace.firepart1.Fire fire2 = Workspace.firepart2.Fire
while wait() do if Workspace.Flag.BrickColor = BrickColor.new("Really blue") then fire1.Color = BrickColor.new("Bright blue") fire1.SecondaryColor = BrickColor.new("Bright blue")
elseif Workspace.Flag.BrickColor = BrickColor.new("Really red") then fire2.Color = BrickColor.new("Bright red") fire2.SecondaryColor = BrickColor.new("Bright red") end wait() end |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:06 PM |
Let the thread die >.<.
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
Cakins
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 307 |
|
|
| 23 Feb 2012 04:07 PM |
| You don't need that last wait, but either way, if no one is getting it right, let the collaborative effort fix it :/ |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:09 PM |
| Gah. None of them is working. =/ |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:10 PM |
Yes, you do need that wait. Otherwise the loop will crash the game.
Change "Secondary" to "SecondaryColor" and use my code.
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:11 PM |
| Btw nate, do you need that semi-colan after that last wait? |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:12 PM |
Bah, one second. I'm now noticing that I barely looked through your code.
fire1 = game.Workspace.firepart1.Fire fire2 = game.Workspace.firepart2.Fire while true do if game.Workspace.Flag.BrickColor == BrickColor.new("Really blue") then -- red, green, blue. I'm assuming you thought it was blue, green, red fire1.Color = BrickColor.new("Really red") fire1.SecondaryColor = BrickColor.new("Really red") elseif game.Workspace.Flag.BrickColor == BrickColor.new("Really red") then fire2.Color = BrickColor.new("Really blue") fire2.SecondaryColor = BrickColor.new("Really blue") end wait(); --Prevent crash end
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:12 PM |
| And nate, I tried your code and changed the Secondary to SecondaryColor and it still didnt work. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:14 PM |
No, I use semicolons in cases like that.
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:14 PM |
| Gah. Still didnt work. I used your updated code. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:18 PM |
Doh , forgot that fire uses Color3
fire1 = game.Workspace.firepart1.Fire fire2 = game.Workspace.firepart2.Fire while true do if game.Workspace.Flag.BrickColor == BrickColor.new("Really blue") then -- red, green, blue. I'm assuming you thought it was blue, green, red fire1.Color = Color3.new(255,0,0) fire1.SecondaryColor = Color3.new(255,0,0) elseif game.Workspace.Flag.BrickColor == BrickColor.new("Really red") then fire2.Color = Color3.new(0,0,255) fire2.SecondaryColor = Color3.new(0,0,255) end wait(); --Prevent crash end
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:19 PM |
| Hah. That did something, it changed fire1 to black. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:21 PM |
That's... weird.
Output?
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
Sam3812
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 1703 |
|
|
| 23 Feb 2012 04:22 PM |
@Nate, Doh, you also forgot that colour three uses a decimal system.
fire1 = game.Workspace.firepart1.Fire fire2 = game.Workspace.firepart2.Fire while true do if game.Workspace.Flag.BrickColor == BrickColor.new("Really blue") then -- red, green, blue. I'm assuming you thought it was blue, green, red fire1.Color = Color3.new(255,0,0) fire1.SecondaryColor = Color3.new(255,0,0) elseif game.Workspace.Flag.BrickColor == BrickColor.new("Really red") then fire2.Color = Color3.new(0,0,255) fire2.SecondaryColor = Color3.new(0,0,1) -- (R,G,B) (0/255,0/255,0/255) end wait(); --Prevent crash end |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 23 Feb 2012 04:26 PM |
Not legitimately. That that was only for guis.
"Bro five! Wear this to let everyone know you think they deserve a high five." |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:26 PM |
| Sam, nope that didnt work. |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
| |
|
Sam3812
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 1703 |
|
|
| 23 Feb 2012 04:30 PM |
fire1 = game.Workspace.firepart1.Fire fire2 = game.Workspace.firepart2.Fire while true do if game.Workspace.Flag.BrickColor == BrickColor.new("Really blue") then -- red, green, blue. I'm assuming you thought it was blue, green, red fire1.Color = Color3.new(255/255,0/255,0/255) fire1.SecondaryColor = Color3.new(255/255,0/255,0/255) elseif game.Workspace.Flag.BrickColor == BrickColor.new("Really red") then fire2.Color = Color3.new(0/255,0/255,255/255) fire2.SecondaryColor = Color3.new(0/255,0/255,255/255) -- (R,G,B) (0/255,0/255,0/255) end wait(); --Prevent crash end |
|
|
| Report Abuse |
|
|
OwneD1991
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 12623 |
|
|
| 23 Feb 2012 04:33 PM |
| sam. that turned fire1 red when flag was really blue =/ |
|
|
| Report Abuse |
|
|