Currently, you need to make a workaround if you wish to find multiple values. Which is very inconvenient.
The image below shows two values that are an immediate child of ‘Instance’. There’s more roaming about down that list. (If it cropped, click on the image to enlarge it)
If you look at Gui’s for example; they’re globally called GuiObject whereas buttons are called GuiButtons and labels called GuiLabels inside GuiBase2d.
Why is this not the case for Values? Right now they’re lying around all over the place. I think it’d be nice to have those organized in Classes just like the Gui’s are
The reason why I’m suggesting this is because when I script, I always face the same issue when it comes to Values: How can I retrieve multiple values’ data (e.g String- and NumberValues), without having to create a workaround (e.g a loop, using tables, etc.)?
This idea should make things easier. Instead of looping through all the separate values, you can just use the Class “Values” for example.
Before you want to tell me to read already existing posts, please read the comment I made when I was told the first time:
Would be great if number type values shared a unique superclass. For example:
<Value Object Superclass>
<Number Value Superclass>
IntValue
NumberValue
Any potential future number type value objects (there are others I think, but I believe they got deprecated. Guess they would be in here too, regardless of that)
StringValue
BoolValue
Etc.
This way in any situation where all you need is a number and it doesn’t rely on it being an IntValue or NumberValue specifically, you can check for the superclass of all number type value objects.
Added Class ValueBase
Changed the Superclass of Class BinaryStringValue to ValueBase
Changed the Superclass of Class BoolValue to ValueBase
Changed the Superclass of Class BrickColorValue to ValueBase
Changed the Superclass of Class CFrameValue to ValueBase
Changed the Superclass of Class Color3Value to ValueBase
Changed the Superclass of Class DoubleConstrainedValue to ValueBase
Changed the Superclass of Class IntConstrainedValue to ValueBase
Changed the Superclass of Class IntValue to ValueBase
Changed the Superclass of Class NumberValue to ValueBase
Changed the Superclass of Class ObjectValue to ValueBase
Changed the Superclass of Class RayValue to ValueBase
Changed the Superclass of Class StringValue to ValueBase
Changed the Superclass of Class Vector3Value to ValueBase