What does "Argument 1 missing or nil" mean? It pops up when I use FindFirstChild.
I get the error "Argument 1 missing or nil"... Code:
03 | local DataStore = game:GetService( "DataStoreService" ) |
04 | local ds = DataStore:GetDataStore( "PicklePointsSaveSystem54835723" ) |
06 | local player = game.Players.LocalPlayer |
08 | local tools = player.Backpack |
09 | local currentTools = { } |
11 | for i, v in pairs (tools:GetChildren()) do |
12 | table.insert(currentTools, v.Name) |
15 | tools.ChildAdded:connect( function (object) |
16 | table.insert(currentTools, object.Name) |
19 | player.Character.Humanoid.Died:connect( function () |
20 | repeat wait() until player.Character.Humanoid.Health = = player.Character.Humanoid.MaxHealth |
21 | for i, v in ipairs (currentTools) do |
22 | if v.Name ~ = "Pickle" then |
23 | local tool = game.ServerStorage.Tools:FindFirstChild(v.Name) |
24 | tool:Clone().Parent = player.Backpack |