GetUserSets (Method)
From Legacy Roblox Wiki
Jump to navigationJump to search
GetUserSets( Integer userId ) | |
Returns | Table userSets |
Description: | Returns a list of that user's sets. |
Member of: | InsertService |
Here is a diagram of the table this returns:
Table sets { -- all the sets
- Table set { -- a single set, there can be any number of these.
- }
}
InsertService = game:GetService("InsertService") Sets = InsertService:GetUserSets(1) Set = Sets[1] SetId = Set.AssetSetId Collection = InsertService:GetCollection(SetId) Model = Collection[1] AssetId = Model.AssetId InsertedModel = InsertService:LoadAsset(AssetId) InsertedModel.Parent = Workspace
Would effectively be the same as
game:GetService("InsertService"):LoadAsset(game:GetService("InsertService"):GetCollection(game:GetService("InsertService"):GetUserSets(1)[1].AssetSetId)[1].AssetId).Parent = Workspace