|
| 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 |
|
|
| |
|
|
| 06 Feb 2015 03:35 PM |
No, omg really?
This is just the line copied which doesn't fire. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2015 03:36 PM |
| Does it need to be a string? |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2015 03:37 PM |
Ye I think so, Whenever I change the style (which works) I use strings too. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2015 03:38 PM |
| Yeah youre right, just checked the wiki |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 10 Oct 2009 |
| Total Posts: 670 |
|
|
| 06 Feb 2015 03:45 PM |
sorry
if script.Parent.Style==Enum.ButtonStyle.RobloxRoundDefaultButton then |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 08:29 AM |
Choong, thank you.
It doesn't make any sense to me but worked ;3 |
|
|
| Report Abuse |
|
|