miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 05:11 PM |
I feel so ashamed asking this...
script.Parent.TextButton.BackgroundColor3 = Color3.new(119/255, 119/255, 119/255) wait(.1) script.Parent.TextButton.BackgroundColor3 = Color3.new(0/255 ,0/255 ,0/255)
Why the heck does this not work? And don't say "oh, you might have the parents wrong."
Seriously, why doesn't this work? |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2012 05:15 PM |
you either do this:
script.Parent.TextButton.BackgroundColor3 = Color3.new(119, 119, 119) wait(.1) script.Parent.TextButton.BackgroundColor3 = Color3.new(0 ,0 ,0)
or this:
script.Parent.TextButton.BackgroundColor3 = Color3.new((119/255), (119/255), (119/255)) wait(.1) script.Parent.TextButton.BackgroundColor3 = Color3.new((0/255) ,(0/255) ,(0/255))
I do not know what you are trying to do |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 05:25 PM |
Still didn't work. Both didn't. And I want to change the Color of the Gui.
And to be clear, my parents are right because I checked with an if statement. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Mar 2012 05:28 PM |
Output?
Also how are you testing this? |
|
|
| Report Abuse |
|
|
vexStudio
|
  |
| Joined: 18 Mar 2012 |
| Total Posts: 55 |
|
|
| 21 Mar 2012 06:05 PM |
I see two things that don't error, but should be fixed.
"script.Parent.TextButton.BackgroundColor3 = Color3.new(0/255 ,0/255 ,0/255)"
a. The commas are improperly placed. b. Zero divided by two hundred fifty-five is still zero.
Altered version:
script.Parent.TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
{ Scripting level - intermediate. } |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 07:55 PM |
@vex
No...
@SDuke
I'm testing in Play solo and start server. |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 21 Mar 2012 07:58 PM |
| Give us more info than this. . . |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 21 Mar 2012 08:06 PM |
Joo change the gui's color like this. Ex.
TB.BackgroundColor3 = BrickColor.new("Bright red").Color |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 08:16 PM |
@Noah
No, no you don't.
@smurf
what else is there to say??? It's a textbutton, inside of a Screen Gui |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2012 08:26 PM |
| There is absolutely nothing wrong with your script. I know you don't want me to say that you parented the script and textbutton wrong... So I wont. Put a print("Running Script") to make sure the script is actually running. Your antivirus / firewall might be blocking a roblox connection. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 08:29 PM |
| Printed, it worked. Just doesn't run.... |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2012 08:29 PM |
Try this.
c=119/255 script.Parent.TextButton.BackgroundColor3 = Color3.new(c,c,c) wait(5) --maybe you weren't noticing the change it happened so fast script.Parent.TextButton.BackgroundColor3 = Color3.new(0,0,0) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 08:40 PM |
Ok, now it works, on my player but not in start server :/
Something messed up with my studio.
Well, thanks. I guess :/ |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 08:42 PM |
Ok now how come this doens't work???
while true do script.Parent.TextButton.BackgroundColor3 = Color3.new(199/255,199/255,199/255) wait(.1) script.Parent.TextButton.BackgroundColor3 = Color3.new(0/255,0/255,0/255) end
I seriously think something is wrong with my studio. Anything glitchy about yours? |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2012 08:44 PM |
Miz, RESTART STUDIO. Is the textbutton called "TextButton" also, (teehee), Is it REALLY REALLY 1000% Parented correctly :P I know it is, just wanna mess with you though. |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2012 08:46 PM |
while true do script.Parent.TextButton.BackgroundColor3 = Color3.new(199/255,199/255,199/255) wait(.1) script.Parent.TextButton.BackgroundColor3 = Color3.new(0/255,0/255,0/255) end
The above script doesn't work because;
Here's what happens:
1) The script changes to 199/255,199/255,199/255 2) .1 seconds pass 3) Now it's black 4) It turns back to 199/255,199/255,199/255 but IMMEDIATELY becomes black again because there is no wait |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2012 08:47 PM |
| I didn't see that there wasn't a second wait >.> fissy is goooood. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Mar 2012 08:50 PM |
How did I not see that :O
I must be losing my mind!
Thanks. |
|
|
| Report Abuse |
|
|
vexStudio
|
  |
| Joined: 18 Mar 2012 |
| Total Posts: 55 |
|
|
| 22 Mar 2012 06:31 AM |
@miz656
When you said no to my suggestions, I was pointing out inefficiencies, not errors.
{ Scripting level - intermediate. } |
|
|
| Report Abuse |
|
|