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
 

What the heck???

Previous Thread :: Next Thread 
miz656 is not online. 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
HungerMinigames is not online. HungerMinigames
Joined: 01 Mar 2012
Total Posts: 358
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 is not online. 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 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
21 Mar 2012 05:28 PM
Output?

Also how are you testing this?
Report Abuse
vexStudio is not online. 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 is not online. 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 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
21 Mar 2012 07:58 PM
Give us more info than this. . .
Report Abuse
noah is not online. 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 is not online. 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
TheNewFissy is not online. TheNewFissy
Joined: 03 Jan 2011
Total Posts: 1301
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
21 Mar 2012 08:29 PM
Printed, it worked. Just doesn't run....
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
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 is not online. 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 is not online. 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
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
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
TheNewFissy is not online. TheNewFissy
Joined: 03 Jan 2011
Total Posts: 1301
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
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
21 Mar 2012 08:47 PM
I didn't see that there wasn't a second wait ​>.> fissy is goooood.
Report Abuse
miz656 is not online. 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 is not online. 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
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