[V.1.1] Custom Instance Functions (UPDATED)

Updated to V.1.1 on 10.9.2020

This module adds custom functions to instances

  • :WaitForChildWhichIsA()
  • :WaitForChildOfClass()
  • :GetChildrenWhichAre()
  • :GetChildrenOfClass()
  • :WaitForDescendantWhichIsA()
  • :WaitForDescendantOfClass()
  • :WaitForDescendant()

This module is mostly for convenience and i’m looking for more functions to add. The documentation is inside the module and the V.1.0 Documentation is below.

See Documentation Here

You can either create a blank module and use “return require(5804159458)” which will always return the newest version. You can also get the module here if you want to take a look at the source code.

If you want more examples on use you can look at this place file with the module and a test script which shows how to use the module.

Custom Instance Class test.rbxl (25.4 KB)

I’m looking for more things to add to the module. Please leave suggestions, reviews, and bugs below and I will get to them when I can.

Enjoy!

13 Likes

Hey! I had a few suggestions:
:WaitForDescendant()
:WaitForDescendantWhichIsA()
:WaitForDescendantOfClass()
:GetDescendantsOfClass()
:GetDescendantsWhichAre()

Also, multiple
:WaitForChildren() - multiple strings or a table
:WaitForDescendants()

1 Like

GetDescendantsOFClass and GetDescendantsWhichAre are apart of the recursive property of The GetChildren commands but i’ll be sure to take a look at adding the other ones!

2 Likes

Just added the functions, thank you for your feedback!

1 Like