|
| 09 Aug 2015 07:05 PM |
:IsA('BasePart') is for parts, wedgeparts, unions
:IsA('Script') is for scripts, localscripts
what do i use for values like intvalues, stringvalues
:IsA('Value') wont work |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Aug 2015 07:07 PM |
Unfortunately there is no abstract class for all of the "Value" objects You'll have to check them all separately. |
|
|
| Report Abuse |
|
|
| |
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 09 Aug 2015 07:08 PM |
| Uh, none of the value objects have a common inheritance parent, save for Instance. Try something like .ClassName:match('^.+Value$') |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 07:09 PM |
| You need to check them seperately |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Aug 2015 07:41 PM |
I think you meant '.-' (but to be fair, it's always all letters so %a- would work fine)
'^%a-Value$' |
|
|
| Report Abuse |
|
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 09 Aug 2015 07:42 PM |
| but . is shorter :c and yeah .-, too much regex where a - doesn't exist |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 09 Aug 2015 07:46 PM |
You people seem like you'd be good at this:
www.roblox.com/Forum/ShowPost.aspx?PostID=170059584
--Please help me with that? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Aug 2015 07:46 PM |
| Although weirdly, + works here when it should just keep matching until the (well in the case of %a+) end of the string since they're all letters right? |
|
|
| Report Abuse |
|
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 09 Aug 2015 07:49 PM |
technically mine should work because i had "Value" after it, so it'd match as many characters it could before any "Value". That means it'd match "asdfValueasdfValue" and the ".+" would match "asdfValueasdf" because that's the most characters before a value.
I don't know why I included the "start and end" thingies (^$), again too much regex for other stuff. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Aug 2015 07:51 PM |
| Oh duh, I'm so dumb I totally forgot. It'll go until the LAST "Value" |
|
|
| Report Abuse |
|
|