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
 

Can I change BrickColor Values with Color3 Values?

Previous Thread :: Next Thread 
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:04 PM
Can I make a brick go from red to orange in a smooth pattern by changing its BrickColor with a Color3 value?

this is what I tried:

r = 254
g = 165
b = 9



while true do
repeat
script.Parent.BrickColor = Color3.new(r,g,b)
g = g-0.1
wait(.8)
until g<=30
wait(1)
repeat
script.Parent.BrickColor = Color3.new(r,g,b)
g = g+0.1
wait(.8)
until g>=165
wait(1)
end
Report Abuse
Kuroki is not online. Kuroki
Joined: 27 Dec 2009
Total Posts: 18058
14 Jul 2010 08:16 PM
No, instead you just use Color3Values
Then chose the color you want
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:16 PM
So.... script.Parent.BrickColor=script.Color.Value?
Report Abuse
Kuroki is not online. Kuroki
Joined: 27 Dec 2009
Total Posts: 18058
14 Jul 2010 08:18 PM
If what you will change is the BrickColor of a brick and such, use a BrickColor value

If its for Smoke, Sparkles, Smoke, any object wich uses Color3 values, then use a Color3 value to change it...
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:19 PM
its either that
script.Parent.BrickColor=script.Color.Value
or
script.Parent.BrickColor=BrickColor.new(script.Color.Value)
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:24 PM
Guys, thanks for trying, but I tried all of your help and none of it works. =(

The script works, but it changes it converts the Color3 Value to ASCII Color Value. >=|
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:27 PM
script.Parent.Color=Color3.new(script.Color.Value)
try that
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:28 PM
It would have worked that way with the script I posted on my first post in this thread. =P
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:30 PM
r = 254
g = 165
b = 9



while true do
repeat
script.Parent.Color = Color3.new(r,g,b)
g = g-0.1
wait(.8)
until g<=30
wait(1)
repeat
script.Parent.Color = Color3.new(r,g,b)
g = g+0.1
wait(.8)
until g>=165
wait(1)
end
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:34 PM
Um....... Did you just post the script I had originally made?
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:35 PM
its Color not BrickColor
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:38 PM
> error: Attempt to index 'Color' (a nil value)

I don't even have to test that to know what it will say. =|
ROBLOX is beginning to irritate me. It doesn't give users the freedom to really change a bricks color. >:$
Report Abuse
Kuroki is not online. Kuroki
Joined: 27 Dec 2009
Total Posts: 18058
14 Jul 2010 08:39 PM
Why dont you add a Color3Value, type the hexadecimal color code there, then instead of using the values in the script, connect them to the said Color3Value?
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
14 Jul 2010 08:40 PM
Umg, idiots.


BrickColor = BrickColor.new( Color3.new(r,g,b) )
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:41 PM
Tried that about 5 minutes ago. =l

Im thinking this isn't possible... But I've seen SOMEONE do it.. The guy who had that Roller Coaster Creater game that was on the front page a long time ago. Hm.....
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:42 PM
Nicnac is back and calls ppl idiots again. now that wasnt surprising...
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:42 PM
NicNac, I tried that.. But it didn't change the Color3 right. It turned it grey!
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
14 Jul 2010 08:42 PM
Lucas post that part, I know why it does.
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:43 PM
BrickColor = BrickColor.new( Color3.new(r/255,g/255,b/255) )
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
14 Jul 2010 08:43 PM
Trying to be the hero off of my post huh ellosss ... I was going to fix it that way >:|
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:44 PM
Do you like pie?
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:44 PM
GACK! I cannot believe I forgot to do that AGAIN... Thanks guys!
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
14 Jul 2010 08:46 PM
welcome
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
14 Jul 2010 08:48 PM
Should have wiki'd it, not welcome.
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
14 Jul 2010 08:48 PM
-_- Now its converting it to the closest ASCII Color, and not the actual Color3 Value. Its still orange, but its the same orange until it gets close to the color of a redder color on the ASCII color chart.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
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