So i made a server script which clones tools into player's backpack, simple. But there is that problem, i am trying to access those tools i cloned from local script in StarterPlayerScripts, i see them on my client in the backpack in the explorer and on the server too but the script seems to be blind and does not find anything in the backpack, i made while loop which gets amount of children from the backpack, it printed 0 for 12 generations, then, i tried to use WaitForChild for one of the tools, i have successfully created an infinite yield. Could anybody please explain me this? I am completely confused by that.
Codes:
Server script: When player gets added, it adds the tools from server storage
player.CharacterAdded:Connect(function(character)
if character then
local human = character:FindFirstChild("Humanoid")
Call("LoadPlayerTools", player, tools)
end
end)
Local script: It should get the tools from the backpack
if backpack then
local toolsToConfigure = {}
for _, tool in pairs(backpack:GetChildren()) do
if tool and tool:IsA("Tool") then
table.insert(toolsToConfigure, tool)
end
end
return toolsToConfigure
end
Thanks, kirda

2 comments
Could you take your time and provide helpful insights in your code so we could answer your question? I really cannot understand what you're saying.
Yea sure i'll do it