Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with insert service?

Asked by 9 years ago

I was trying to print the names of the models in my set that I have but I keep getting a error saying:

17:33:39.508 - Argument 1 missing or nil 17:33:39.509 - Script 'InsertService = game:GetService("InsertService") UserSets =', Line 4 17:33:39.510 - Stack End

I'm pretty sure I put something in argument 1,I don't get why it saying this.

InsertService = game:GetService("InsertService")
UserSets = InsertService:GetUserSets(1077607,1)
SetId= UserSets.AssetSetId
Collection = InsertService:GetCollection(SetId)
for i = 1,10 do
Model = Collection[i]
AssestId = Model.AssestId
print(Model.Name)
end



Answer this question