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

What does "Argument 1 missing or nil" mean? It pops up when I use FindFirstChild.

Asked by 7 years ago

I get the error "Argument 1 missing or nil"... Code:

01wait(2)
02 
03local DataStore = game:GetService("DataStoreService")
04local ds = DataStore:GetDataStore("PicklePointsSaveSystem54835723")
05 
06local player = game.Players.LocalPlayer
07 
08local tools = player.Backpack
09local currentTools = {}
10 
11for i, v in pairs(tools:GetChildren()) do
12    table.insert(currentTools, v.Name)
13end
14 
15tools.ChildAdded:connect(function(object)
View all 27 lines...
0
which line... 0msh 333 — 7y
0
line 23 starwars5251977 48 — 7y
0
The variable is already a string, so it would be: if v ~= "Pickle", and: FindFirstChild(v) UgOsMiLy 1074 — 7y
0
You're not checking if the tool is there. <-> TheeDeathCaster 2368 — 7y

Answer this question