# Collection(ロブロックス データ型) > A live, query-based group of instances returned by Class.CollectionService:CreateCollection(). - URL:https://roblox.minecraft-okinawa.com/reference/datatypes/Collection/ - 公式:https://create.roblox.com/docs/reference/engine/datatypes/Collection ## プロパティ - `Collection.Enabled: bool`:Controls whether the collection is tracking instances and firing callbacks. - `Collection.Query: string`:The query that defines the collection. - `Collection.Root: Instance`:The instance whose descendants the collection tracks. ## メソッド - `Collection:Destroy()`:Destroys the collection, stopping all tracking and callbacks. - `Collection:ForEach(callback: function)`:Calls a function once for each instance in the collection. - `Collection:GetCount(): number`:Returns the number of instances in the collection. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)