Universal Script πŸ“Œ
5.9k Views
625 Executions

Get All Tools at any obby

Universal Script πŸ“Œ
kobiednavarro
kobiednavarroFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Script is made by me i guess it works on every obby sinces i only tried it on 1 game

Updates

  1. Script edited: Create script

View Raw
-- 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



Comments

4
Log in to join the conversation. Login
kobiednavarro's profile picture
kobiednavarroUploader2 years ago(edited)

Get Others to Do the Work for You, but Always Take the CreditπŸ™πŸ½πŸ™πŸ½πŸ™πŸ½πŸ₯€πŸ₯€πŸ₯€πŸ₯€

1
green_sans's profile picture
green_sans2 years ago(edited)

pls fix i die and i can't use the script any more after death i can you make keep tools? @kobiednavarro

1
2orb's profile picture
2orb2 years ago(edited)

bro chatgpt

1
Nolanz's profile picture
Nolanz2 years ago(edited)

Created by ChatGPT I guess?

1

More universal scripts

See all
Script hub
21.9k
4.3k
Bumped 26 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
996
2.2k
Bumped 37 minutes ago
Universal Script πŸ“Œ
1.6k
5.9k
Bumped 43 minutes ago
Script hub
164.6k
563.6k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Script hub
3.0k
3.8k
Bumped 5 hours ago
Script hub
286
1.4k
15 hours ago
Key System
Universal Script πŸ“Œ
184
104
Approved 7 hours ago