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 » Scripters
Home Search
 

Re: Gui Style check doesn't work

Previous Thread :: Next Thread 
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
06 Feb 2015 03:32 PM
I have this in my script and it does not fire:

if script.Parent.Style == "RobloxRoundDefaultButton" then

Help me?
Report Abuse
coolrichthealt is not online. coolrichthealt
Joined: 16 Jan 2014
Total Posts: 2111
06 Feb 2015 03:32 PM
Add a function
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
06 Feb 2015 03:35 PM
No, omg really?

This is just the line copied which doesn't fire.
Report Abuse
CUBES4LIFE is not online. CUBES4LIFE
Joined: 22 Jun 2009
Total Posts: 4956
06 Feb 2015 03:36 PM
Does it need to be a string?
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
06 Feb 2015 03:37 PM
Ye I think so,
Whenever I change the style (which works) I use strings too.
Report Abuse
CUBES4LIFE is not online. CUBES4LIFE
Joined: 22 Jun 2009
Total Posts: 4956
06 Feb 2015 03:38 PM
Yeah youre right, just checked the wiki
Report Abuse
ChoongJae is not online. ChoongJae
Joined: 10 Oct 2009
Total Posts: 670
06 Feb 2015 03:45 PM
I have no idea why, but you can't check Enums with a string. You'll need to check it with the Enum object itself.

if script.Parent.Style==Enum.FrameStyle.RobloxRoundDefaultButton then
Report Abuse
ChoongJae is not online. ChoongJae
Joined: 10 Oct 2009
Total Posts: 670
06 Feb 2015 03:45 PM
sorry

if script.Parent.Style==Enum.ButtonStyle.RobloxRoundDefaultButton then
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
07 Feb 2015 08:29 AM
Choong, thank you.

It doesn't make any sense to me but worked ;3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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