
KeylessUniversal

-- Function to get all tools in the game
local function findAllTools()
local tools = {} -- Table to store all tools
-- Loop through all descendants in the game (workspace, ReplicatedStorage, etc.)
for _, item in pairs(game:GetDescendants()) do
-- Check if the item is a Tool
if item:IsA("Tool") then
-- If it's a Tool, insert it into the tools table
table.insert(tools, item)
print("Found tool: " .. item.Name) -- Print the name of the tool to the output
end
end
return tools -- Return the list of tools
end
-- Call the function and store the result
local allTools = findAllTools()
-- Output the total number of tools found
print("Total tools found: " .. #allTools)
-- Example of giving all tools to the first player (if there's one)
local player = game.Players:GetPlayers()[1] -- Get the first player in the game
if player then
-- Move each tool to the player's backpack
for _, tool in pairs(allTools) do
tool.Parent = player.Backpack
print("Gave tool: " .. tool.Name .. " to player.")
end
else
print("No players found.")
end



Created by ChatGPT I guess?
bro chatgpt
pls fix i die and i can't use the script any more after death i can you make keep tools? @kobiednavarro
Get Others to Do the Work for You, but Always Take the Creditππ½ππ½ππ½π₯π₯π₯π₯