Universal Script πŸ“Œ
597 Views
735 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
Script hub
21.9k
4.3k
Bumped 31 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
1.0k
2.2k
Bumped 42 minutes ago
Universal Script πŸ“Œ
1.6k
5.9k
Bumped 48 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
288
1.4k
15 hours ago
Key System
Universal Script πŸ“Œ
187
104
Approved 7 hours ago