3008 Script | AUTO COLLECT FOOD, MEDKITS

Png-114.png

Created by TheUniqueZYX

Features:

  • AUTO COLLECT FOOD
  • MEDKITS

To change the amount of times you wanna pick up food just go on top of the script and change the variable “TimesToTeleport” number to the amount you would like

example

local TimesToTeleport = 40

--[[ Settings ]]
local TimesToTeleport = 50
local Radius = 40

--[[ Variables ]]
local PS = game:GetService("Players")
local WS = game:GetService("Workspace")
local Player = PS.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local Character = PS.LocalPlayer.Character or PS.LocalPlayer.CharacterAdded:Wait()
local Backpack = Player:WaitForChild("Backpack")
local HumanoidRoot = Character:WaitForChild("HumanoidRootPart")
local ItemsFolder = WS:WaitForChild("GameObjects").Physical.Items
local Storage = PlayerGui:WaitForChild("MainGui").Inventory.Storage

--[[ Remotes ]]
local Pickup  = Character:WaitForChild("server_PickupSystem").MainEvent
local Inventory = Character:WaitForChild("server_PickupSystem").Inventory

local OldCFrame = HumanoidRoot.CFrame 
local OldPosition = HumanoidRoot.Position 

function Check(Object)
    if Object.Name == "Crowbar" then
        return false
    end
    if Object:FindFirstChildOfClass("Part") or Object:FindFirstChildOfClass("MeshPart") then
        local Part = Object:FindFirstChildOfClass("Part") or Object:FindFirstChildOfClass("MeshPart")
        local Distance = (OldPosition - Part.Position).magnitude
        if Distance < Radius then
            return false
        end
        return true, Part
    end
    return false
end

function InvetoryCheck()
    local StorageAmount = string.match(Storage.Text, "%d+")
    if StorageAmount == "16" then
        HumanoidRoot.CFrame = OldCFrame
        wait()
        for i,v in pairs(Backpack:GetChildren()) do
            Inventory:InvokeServer({["Action"] = "DropStack", ["Model"] = v})
            StorageAmount = string.match(Storage.Text, "%d+")
        end
        repeat task.wait() until StorageAmount == "0"
    end
    return "Done"
end

local Amount = 0
for i,v in pairs(WS:GetDescendants()) do
    if v:FindFirstChild("InventoryTag") and v:FindFirstChild("PickupTag") then
        local Bool, Part = Check(v)
        if Bool then
            Amount = Amount + 1
            if Amount >= TimesToTeleport then
                HumanoidRoot.CFrame = OldCFrame
                return;
            else
                repeat task.wait()
                    repeat task.wait() until InvetoryCheck() == "Done"
                        Bool, Part = Check(v)
                        if Part ~= nil then
                            HumanoidRoot.CFrame = Part.CFrame 
                            Pickup:InvokeServer({["Action"] = "AlternateInteract", ["Model"] = v})
                        end
                until Part == nil
            end
        end
    end
end

 

ENJOY!

 

Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script or Get it from Pastebin!

About Us

What is arponag.xyz? arponag.xyz is a website focused on releasing safe exploits, we only release the best and most trusted exploits on our website, guaranteed to satisfy you. Contact us [email protected]

Safety

Is this safe to use? Everything on the website has been scanned and tested by professionals and the community, we only release the best exploits for our users, so we make sure that our exploits won’t harm your devices, everything here is clean.

Copyright © 2018 – 2020 Arpon AG | All rights reserved |
Privacy Policy | Terms of Service