Aller au contenu


Folder is a CoreObject representing a folder containing other objects.

They have no properties or functions of their own, but inherit everything from CoreObject.


Example using:

In this example, we search for the first ancestor of the script that is of type "Folder", then check if it's the root of the hierarchy.

local ROOT = script:FindAncestorByType("Folder")


if ROOT == World.GetRootObject() then
    print("Script is at the root of the hierarchy.")

See also: CoreObject.FindAncestorByType | World.GetRootObject

Dernière mise à jour: 23 décembre 2021