GetCollection (Function)
From Goodblox Wiki
Function | |
---|---|
Syntax | GetCollection( String class ) |
Returns | Objects |
Description: | This function returns all instances of a given class which are in the DataModel. Only works for Configuration and VehicleSeat. |
In Object: | CollectionService |
Example
local CollectionService = game:GetService("CollectionService") for i = 1, 10 do Instance.new("Configuration", workspace) end local objects = CollectionService:GetCollection("Configuration") print(#objects)