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: Color3Value help.

Previous Thread :: Next Thread 
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 07:50 PM
I'm not sure why this isn't working, please help ;o

SkinTone7 = game.Workspace.SkinTone7.Value

if script.Parent.Image == "http://www.roblox.com/asset/?id=88181885" then
script.Parent.Parent.RobloxianGui.Children.BackgroundColor3 = Color3Value.SkinTone7
end

Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 07:52 PM
Oh, sorry. SkinTone7 is the Color3Value.
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
29 Jul 2012 07:52 PM
wat.

You didn't define Color3Value.
Wait, I'm confuse... Is Color3Value an object in workspace?

Try this:

SkinTone7 = game.Workspace.SkinTone7.Value

if script.Parent.Image == "http://www.roblox.com/asset/?id=88181885" then
script.Parent.Parent.RobloxianGui.Children.BackgroundColor3 = SkinTone7
end
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 07:53 PM
That's not the full script, right?

script.Parent.Parent.RobloxianGui.Children.BackgroundColor3 = SkinTone7.Value
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 07:53 PM
Wait, use RoAnt's - I messed up.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 07:54 PM
Didn't work :/. Thanks for trying.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 07:55 PM
Oh, it is the full script >:P.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 07:57 PM
Then it's only going to attempt to run once when the server starts. You need to use the .Changed event for it to detect when script.Parent.Image changes.


Oh and script.Parent.Image wouldn't work, what is the ClassName of Image?
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
29 Jul 2012 07:57 PM
What's the output?
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
29 Jul 2012 07:57 PM
SkinTone7 = game.Workspace.SkinTone7

if script.Parent.Image == "http://www.roblox.com/asset/?id=88181885" then
script.Parent.Parent.RobloxianGui.Children.BackgroundColor3 = SkinTone7.Value
end
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
29 Jul 2012 07:58 PM
What is SkinTone7?

Is it a color3value or a brickcolorvalue?
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
29 Jul 2012 07:59 PM
Try Color3.new(SkinTone7)
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:01 PM
Oh, didn't think of that ;o

Image is the image option inside ImageButton. It changes image when mouse hovers on it, what it changes to is the asset I had in the script, so that the Robloxian dude Gui changes colour while hovering on it.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:02 PM
@RoAnt, it is a Color3Value :P
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:03 PM
@Koen, didn't work, sorry ;o
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
29 Jul 2012 08:03 PM
Tell me if it worked.
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
29 Jul 2012 08:05 PM
How about = SkinTone7.Color
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:06 PM
The Value is the colour though, SkinTone7 already defines that :/
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
29 Jul 2012 08:08 PM
How about = SkinTone7
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:08 PM
Already tried, lol. Didn't work.
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
29 Jul 2012 08:10 PM
I am out of ideas.
Maybe stravant knows?
He helped me making color3 of a brickcolor.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:10 PM
Lol, I'm out too :P. Idk who Stravant is.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:13 PM
local skinTone7 = workspace.SkinTone7;

script.Parent.Changed:connect(function ()
if (script.Parent.Image == "http://www.roblox.com/asset/?id=88181885") then
script.Parent.Parent.RobloxianGui.Children.BackgroundColor3 = skinTone7.Value;
end
end);
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
29 Jul 2012 08:15 PM
Stravant was xlegox.
Hes the best scripter.
Hes a mod too.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 08:18 PM
@Dr01d, I just tried it and it did nothing D;, had my hopes up when I seen that one too :L.
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