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

Argument 1 missing or nil,help?

Asked by 10 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 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

Log in to vote
0
Answered by 10 years ago

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

0
Or could it be that I did the GetUserSets() wrong? kevinnight45 550 — 10y
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. MightyWanderer 30 — 10y
Ad

Answer this question