game.Players.PlayerAdded:Connect(function(player)
local blocksTool
local deleteTool
coroutine.resume(coroutine.create(function()
repeat wait() until blocksTool ~= nil and deleteTool ~= nil do
print("Got tools")
end
end))
player.Backpack.ChildAdded:Connect(function(object)
if object:IsA("Tool") then
if object.Name == "Blocks" then
blocksTool = object
elseif object.Name == "Delete" then
deleteTool = object
end
end
end)
end)
Haven’t tested it so let me know if it changes anything.
You can try and set it nil/a dummy variable the script can work with, and when a child is added to the backpack, it checks for the tool and sets it to that.
Unfortunately, none of them work. It seems like there is no ChildAdded event fired, so the Backpack is empty for the script, which it definitely isn’t.
I see the tools definitely within 5 seconds in the Backpack, but the script can’t get them. It doesn’t matter if the wait time is 5 or 15 seconds, since the script finds nothing.