Try it in your browserpreview Source

Cast ArrayLuau✎

For a collection you know more about than its type says: Get Descendants is { Instance }, and this is how you say they are all BaseParts.

Pending review

BasePart:: { }
  • the language itself, so it works in Roblox and in Lune
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • Value:tablemust be wired
  • Type:string= "BasePart"literalfrom a list
    Offers 682 values to pick from, and takes anything else typed in.

Outputs

  • result:table

What it compiles to

luau
print((value :: { BasePart }))

Warning

Type is typed in directly and pasted into the generated source, so it cannot be wired from a value. The editor refuses the connection rather than letting it fail at compile time.

Not reviewed yet