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
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 07:52 PM |
| Oh, sorry. SkinTone7 is the Color3Value. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 29 Jul 2012 07:53 PM |
| Wait, use RoAnt's - I messed up. |
|
|
| Report Abuse |
|
|
SeanyBiy
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 07:54 PM |
| Didn't work :/. Thanks for trying. |
|
|
| Report Abuse |
|
|
SeanyBiy
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 07:55 PM |
| Oh, it is the full script >:P. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
| |
|
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
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 08:02 PM |
| @RoAnt, it is a Color3Value :P |
|
|
| Report Abuse |
|
|
SeanyBiy
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 08:03 PM |
| @Koen, didn't work, sorry ;o |
|
|
| Report Abuse |
|
|
koen500
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
| |
|
koen500
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
|
| 29 Jul 2012 08:05 PM |
| How about = SkinTone7.Color |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
| |
|
SeanyBiy
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 08:08 PM |
| Already tried, lol. Didn't work. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|