- _G.Enabled = true
-
- local function bypasscooldown()
- game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(
- function(prompt)
- prompt.HoldDuration = 0
- end
- )
- end
-
- while _G.Enabled do
- task.wait(.5)
- local player = game:GetService("Players").LocalPlayer
- local chests = {}
- for _, v in pairs(game:GetService("Workspace").chests:GetChildren()) do
- if v:IsA("Part") then
- table.insert(chests, v)
- end
- end
- for _, v in pairs(game:GetService("Workspace"):GetChildren()) do
- if string.sub(v.Name, -2) == "-p" then
- table.insert(chests, v)
- end
- end
- if #chests > 0 then
- local chest = chests[math.random(#chests)]
- for i = 1, 10 do
- game:GetService("VirtualInputManager"):SendKeyEvent(true, "E", false, nil)
- task.wait()
- game:GetService("VirtualInputManager"):SendKeyEvent(false, "E", false, nil)
- end
- player.Character.HumanoidRootPart.CFrame = CFrame.new(chest.Position + Vector3.new(0, 4, 0))
- workspace.FallenPartsDestroyHeight = 0 / 0
- bypasscooldown()
- end
- end