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: Color3 doesn't work

Previous Thread :: Next Thread 
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 08:43 AM
butt.BackgroundColor3 = Color3.new(0,128,10)

In the properties box, it turns out as a nice shade of green.
When I put it in a script, it turns out to be cyan.
What's going on? How do I fix this?
Thanks in advance :)
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
09 Nov 2013 08:45 AM
http://wiki.roblox.com/index.php/Color3
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 08:47 AM
Doesn't help. I don't want a new function, I just want the line to work like it should.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
09 Nov 2013 08:51 AM
Did you even read it?
"Color3 values only range from 0 to 1"
"Color3.new(r/255, g/255, b/255)"
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 08:53 AM
I did read it.
And tried that earlier. I do go to the wiki before here, you know.
But then it said something in the output, I'll get it up for you.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 08:55 AM
Players.Player1.PlayerGui.SGCGUI.DoorControls.OpenTrainee.S:23: attempt to perform arithmetic on global 'r' (a nil value)
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
09 Nov 2013 08:56 AM
r is obviously undefined.
Post the relevant parts?
If it`s local it`s probably not in the right scope.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 09:04 AM
You only gave me two lines, so I thought I didn't need it to be defined.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 09:05 AM
can you please just tell me what to do? I've been stumped on this all day.
Report Abuse
bibo5o is not online. bibo5o
Joined: 17 Jan 2009
Total Posts: 414
09 Nov 2013 09:21 AM
Color3.new(r/255, g/255, b/255)

You are meant to change r to 0, g to 128 and b to 10.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 09:22 AM
?
you mean:

r = 0
g = 128
b = 10

Color3.new(r/255,g/255,b/255)

??
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
09 Nov 2013 09:23 AM
are you like in elementary school or why are you too stupid to understand this?


Color3.new(0/255,128/255,10/255)
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 09:24 AM
Guess you did, it worked.
Thanks! :)
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
09 Nov 2013 09:24 AM
...
That r...
That`s Pseudocode

Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
09 Nov 2013 09:25 AM
Wow, why are you so cruel?
This is scripting helpers, not scripting be horrible to people who don't know what to do.
Just because you know how to do it, doesn't mean others do.
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