Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Argument 1 missing or nil,help?

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 its 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



1 answer

It would be that SetId is not returning as you expect it to for some reason, you should check into that.

2 comments

0

Or could it be that I did the GetUserSets() wrong?

0

That's possible. The error is in "Argument 1", and the only argument on that line is "SetId." I'd check by printing everything to make sure it's returning correctly.

This discussion is preserved as it was. New answers, comments, and votes are closed.