Make Value objects extend/inherit the superclass "ValueObject"

It would make identifying if an object is a IntValue, Color3Value, CFrameValue, etc. easier if all of the value objects had 1 superclass. Then you would be able to do this:

for i, v in pairs(part:GetChildren()) do
    if v:IsA("ValueObject") then
       v:Destroy()
    end
end
6 Likes

This has been posted before:

It’s not the main subject, but if you read through the thread EchoReaper suggests the same thing:

1 Like

Oh wow, exact same class name too lol

The solution .ClassName:match'Value' always works but yes the base class would be an improvement.

1 Like