Script bring items open source I
Key Required

Script bring items open source I

99 Nights in the Forest 🔦VietNamScriptVodichVietNamScriptVodich 2.3K views 11 executesUpdated Sep 22, 2025
5.0/ 5(6 votes)
60100% Positive
Lua Script•193 lines (6809 chars)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local workspaceItems = workspace:WaitForChild("Items")

local selectedItem = nil

local function startDrag(item)
    pcall(function()
        ReplicatedStorage.RemoteEvents.RequestStartDraggingItem:FireServer(item)
    end)
end

local function stopDrag(item)
    pcall(function()
        ReplicatedStorage.RemoteEvents.StopDraggingItem:FireServer(item)
    end)
end

local function bringItem(item)
    if item.Name:find("Chest") then return end
    if selectedItem and item.Name ~= selectedItem then return end
    local targetPart
    for _, child in ipairs(item:GetDescendants()) do
        if child:IsA("MeshPart") or child:IsA("Part") then
            targetPart = child
            break
        end
    end
    if targetPart then
        local dropPos = hrp.Position + Vector3.new(0,2,0)
        if item:IsA("Model") and item.PrimaryPart then
            item:SetPrimaryPartCFrame(CFrame.new(dropPos))
        else
            targetPart.Position = dropPos
        end
    end
end

local function openChest(chest)
    if chest and chest:FindFirstChild("Main") then
        local proxAtt = chest.Main:FindFirstChild("ProximityAttachment")
        if proxAtt then
            for _, obj in ipairs(proxAtt:GetChildren()) do
                if obj:IsA("ProximityPrompt") or obj.Name == "ProximityInteraction" then
                    pcall(function() fireproximityprompt(obj) end)
                end
            end
        end
    end
end

workspaceItems.ChildAdded:Connect(function(item)
    if item.Name:find("Chest") then
        openChest(item)
    end
end)

for _,item in ipairs(workspaceItems:GetChildren()) do
    if item.Name:find("Chest") then
        openChest(item)
    end
end

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game:GetService("CoreGui")
ScreenGui.Name = "LootChestUI"
ScreenGui.ResetOnSpawn = false

local Frame = Instance.new("Frame")
Frame.Parent = ScreenGui
Frame.Size = UDim2.new(0, 280, 0, 300)
Frame.Position = UDim2.new(0.05,0,0.25,0)
Frame.BackgroundColor3 = Color3.fromRGB(20,20,20)
Frame.Active = true
Frame.Draggable = true

local UICorner = Instance.new("UICorner", Frame)
UICorner.CornerRadius = UDim.new(0,12)

local UIStroke = Instance.new("UIStroke", Frame)
UIStroke.Thickness = 2
UIStroke.Color = Color3.fromRGB(100,200,255)

local Title = Instance.new("TextLabel")
Title.Parent = Frame
Title.Size = UDim2.new(1,0,0,25)
Title.BackgroundTransparency = 1
Title.Text = "Auto Loot Chest"
Title.Font = Enum.Font.GothamBold
Title.TextColor3 = Color3.fromRGB(255,255,255)
Title.TextSize = 16

local BringButton = Instance.new("TextButton")
BringButton.Parent = Frame
BringButton.Size = UDim2.new(0.9,0,0,30)
BringButton.Position = UDim2.new(0.05,0,0.05,35)
BringButton.BackgroundColor3 = Color3.fromRGB(50,50,50)
BringButton.Text = "BRING ITEMS"
BringButton.Font = Enum.Font.GothamBold
BringButton.TextColor3 = Color3.fromRGB(255,255,255)
BringButton.TextSize = 14

local BringCorner = Instance.new("UICorner", BringButton)
BringCorner.CornerRadius = UDim.new(0,8)

local Dropdown = Instance.new("TextButton")
Dropdown.Parent = Frame
Dropdown.Size = UDim2.new(0.9,0,0,30)
Dropdown.Position = UDim2.new(0.05,0,0.15,70)
Dropdown.BackgroundColor3 = Color3.fromRGB(40,40,40)
Dropdown.Text = "Chọn item (trống = tất cả)"
Dropdown.Font = Enum.Font.Gotham
Dropdown.TextColor3 = Color3.fromRGB(255,255,255)
Dropdown.TextSize = 12

local DropCorner = Instance.new("UICorner", Dropdown)
DropCorner.CornerRadius = UDim.new(0,6)

local OptionsFrame = Instance.new("ScrollingFrame")
OptionsFrame.Parent = Frame
OptionsFrame.Size = UDim2.new(0.9,0,0.5,0)
OptionsFrame.Position = UDim2.new(0.05,0,0.25,0)
OptionsFrame.BackgroundColor3 = Color3.fromRGB(30,30,30)
OptionsFrame.Visible = false
OptionsFrame.CanvasSize = UDim2.new(0,0,0,0)
OptionsFrame.ScrollBarThickness = 6

local OptCorner = Instance.new("UICorner", OptionsFrame)
OptCorner.CornerRadius = UDim.new(0,6)

local itemList = {
    ["Alien Chest"]="Rương Người Ngoài Hành Tinh",["Alpha Wolf Pelt"]="Da Sói Alpha",
    ["Anvil Front"]="Đe (Trước)",["Anvil Back"]="Đe (Sau)",["Apple"]="Táo",
    ["Bandage"]="Băng Gạc",["Bear Corpse"]="Xác Gấu",["Bear Pelt"]="Da Gấu",
    ["Berry"]="Dâu",["Biofuel"]="Nhiên Liệu Sinh Học",["Bolt"]="Bu Lông",
    ["Broken Fan"]="Quạt Hỏng",["Bunny Foot"]="Chân Thỏ",["Carrot"]="Cà Rốt",
    ["Coal"]="Than",["Coin Stack"]="Xấp Xu",["Cooked Morsel"]="Thịt Nhỏ Nướng",
    ["Cooked Steak"]="Bít Tết Nướng",["Chainsaw"]="Cưa Máy",["Cultist"]="Tín Đồ",
    ["Cultist Gem"]="Ngọc Tín Đồ",["Flower"]="Hoa",["Fuel Canister"]="Bình Nhiên Liệu",
    ["Hologram Emitter"]="Máy Chiếu Hologram",["Item Chest"]="Rương Vật Phẩm",
    ["Laser Fence Blueprint"]="Bản Vẽ Hàng Rào Laser",["Leather Body"]="Áo Da",
    ["Iron Body"]="Áo Sắt",["Thorn Body"]="Áo Gai",["Log"]="Khúc Gỗ",
    ["MedKit"]="Hộp Cứu Thương",["Morsel"]="Thịt Nhỏ",["Old Flashlight"]="Đèn Pin Cũ",
    ["Old Radio"]="Radio Cũ",["Good Sack"]="Túi Tốt",["Good Axe"]="Rìu Tốt",
    ["Raygun"]="Súng Laser",["Giant Sack"]="Túi Khổng Lồ",["Strong Axe"]="Rìu Mạnh",
    ["Oil Barrel"]="Thùng Dầu",["Old Car Engine"]="Động Cơ Cũ",["Rifle"]="Súng Trường",
    ["Rifle Ammo"]="Đạn Súng Trường",["Revolver"]="Súng Lục",["Revolver Ammo"]="Đạn Súng Lục",
    ["Sapling"]="Cây Non",["Sheet Metal"]="Tấm Kim Loại",["Steak"]="Bít Tết",
    ["Wolf Pelt"]="Da Sói",["Gem of the Forest Fragment"]="Mảnh Ngọc Rừng",
    ["Tyre"]="Lốp Xe",["Washing Machine"]="Máy Giặt",["Broken Microwave"]="Lò Vi Sóng Hỏng"
}

local i=0
for eng,vn in pairs(itemList) do
    i=i+1
    local btn = Instance.new("TextButton")
    btn.Parent = OptionsFrame
    btn.Size = UDim2.new(1,0,0,25)
    btn.Position = UDim2.new(0,0,0,(i-1)*25)
    btn.BackgroundColor3 = Color3.fromRGB(50,50,50)
    btn.Text = vn
    btn.Font = Enum.Font.Gotham
    btn.TextColor3 = Color3.fromRGB(255,255,255)
    btn.TextSize = 12
    btn.MouseButton1Click:Connect(function()
        selectedItem = eng
        Dropdown.Text = "Đang chọn: "..vn
        OptionsFrame.Visible=false
    end)
end
OptionsFrame.CanvasSize = UDim2.new(0,0,0,i*25)

Dropdown.MouseButton1Click:Connect(function()
    OptionsFrame.Visible = not OptionsFrame.Visible
end)

BringButton.MouseButton1Click:Connect(function()
    local broughtItems = {}
    for _,item in ipairs(workspaceItems:GetChildren()) do
        bringItem(item)
        table.insert(broughtItems, item)
    end
    for _, item in ipairs(broughtItems) do
        startDrag(item)
    end
    task.wait(0.1)
    for _, item in ipairs(broughtItems) do
        stopDrag(item)
    end
end)

Features & Information

--bring item --dropdown

Community Comments (3)

VantaXockVantaXockSep 22, 2025

Nice

Replying to @VantaXock

@VantaXock Thanks for using

Replying to @VietNamScriptVodich
VantaXockVantaXockSep 24, 2025

@VietNamScriptVodich okay

More Scripts for 99 Nights in the Forest 🔦