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: Alternate option?

Previous Thread :: Next Thread 
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
07 Sep 2011 12:40 PM
color = script.Parent.BrickColor

game.Workspace.TestBrick.BrickColor = BrickColor.new(color)




Why doesn't that work?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 12:40 PM
You need BrickColor.Color for somthing like that, I THINK.
Report Abuse
Timdon8122 is not online. Timdon8122
Joined: 04 Apr 2010
Total Posts: 124
07 Sep 2011 12:40 PM
Simple..

color = script.Parent.BrickColor

game.Workspace.TestBrick.BrickColor = BrickColor.new(color) --You need a number there
end --you forgot an end
--you also forgot how does it funciton?
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
07 Sep 2011 12:42 PM
@ Tim

This is just a small section of the script.

I'm not an idiot, I know that I need ends and functions.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 12:42 PM
timdon, you DON'T need the end, and he dosent want a number there, he wants to set the TestBrick to the color of the scripts parent.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 12:42 PM
O: i thaught it was just a simple script to do that, nothing fancy - lol.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
07 Sep 2011 12:49 PM
I still need help.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
07 Sep 2011 01:16 PM
Is that BrickColor a BrickColor value, if yes i think this might work?

color = script.Parent.BrickColor

game.Workspace.TestBrick.BrickColor = color
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
07 Sep 2011 01:23 PM
game.Workspace.TestBrick.BrickColor = script.Parent.BrickColor

~Ratex
http://www.roblox.com/My/Groups.aspx?gid=374259
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