Universal Script 📌
580 Views
565 Executions

Drop all items from inventory

Universal Script 📌
Gmiler_lol
Gmiler_lolPublished 10
7 months 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

It's just that the script that throws all the items out of the inventory may not work on some games.

View Raw
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

local function dropAllItems()
    local backpack = player:FindFirstChild("Backpack")
    
    if backpack then
        local items = backpack:GetChildren()
        
        for _, item in pairs(items) do
            if item:IsA("Tool") then
                item.Parent = game.Workspace
                
                local handle = item:FindFirstChild("Handle")
                if handle and handle:IsA("BasePart") then
                    handle.CFrame = character.PrimaryPart.CFrame * CFrame.new(0, 0, -5)
                end
            end
        end
    end
    
    local toolInHand = character:FindFirstChildOfClass("Tool")
    if toolInHand then
        toolInHand.Parent = game.Workspace
    end
end

dropAllItems()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
1
0
Approved 20 seconds ago
Universal Script 📌
2
0
Approved 43 seconds ago
Paid
Universal Script 📌
2.7M
2.2M
Bumped 23 minutes ago
Key System
Script hub
19
0
Approved 32 minutes ago
Paid
Universal Script 📌
45
3
Approved 53 minutes ago
Script hub
3.0k
13.8k
Bumped 1 hour ago

Script hub

TLMenu