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: :IsA('Value') ??? wont work, what do i use instead

Previous Thread :: Next Thread 
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
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
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
09 Aug 2015 07:07 PM
/
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
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
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
09 Aug 2015 07:08 PM
alright thanks
Report Abuse
Everment is not online. 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
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
09 Aug 2015 07:09 PM
You need to check them seperately
Report Abuse
cntkillme is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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