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 » Scripters
Home Search
 

Re: Changing BrickColors in a for next statement

Previous Thread :: Next Thread 
RadiantPride is not online. RadiantPride
Joined: 13 Mar 2008
Total Posts: 3508
03 Jul 2015 04:58 AM
for step = 0, 155, 5 do
tint = BrickColor.new(255 - step, 0, 0)
A.BrickColor = tint

Want to make it so that each time the loop plays through the red value decreases, what's wrong with the current statement? I know it's missing an ending and all that it's just the beginning that needs work.

SATURDAY NIGHTS ALRIGHT FOR FIGHTING
Report Abuse
OutbreakDevelopers is not online. OutbreakDevelopers
Joined: 21 Jun 2015
Total Posts: 33
03 Jul 2015 05:01 AM
I dont think BrickColors work like that...

I could be wrong.
Report Abuse
SupahLuke is not online. SupahLuke
Joined: 17 May 2012
Total Posts: 190
03 Jul 2015 05:01 AM
BrickColor's don't support Color3 but you can do something like:

BrickColor.new(Color3.new((255 - step)/255, 0, 0))
Report Abuse
RadiantPride is not online. RadiantPride
Joined: 13 Mar 2008
Total Posts: 3508
03 Jul 2015 05:04 AM
Okay, thanks. I've done basic scripting with things asides from ROBLOX so all the rules and restrictions of ROBLOX are new to me.

I'll fiddle around with that code Supah, thank you.

SATURDAY NIGHTS ALRIGHT FOR FIGHTING
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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