Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.LocalPlayer.PlayerScripts.Scripts.Core["Idle Tracking"].Enabled = false
- if getconnections then
- for _, v in pairs(getconnections(game.Players.LocalPlayer.Idled)) do
- v:Disable()
- end
- else
- game.Players.LocalPlayer.Idled:Connect(function()
- game:GetService("VirtualUser"):Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- task.wait(1)
- game:GetService("VirtualUser"):Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- end)
- end
- if not game:GetService("Workspace").__THINGS.__INSTANCE_CONTAINER.Active:FindFirstChild("AdvancedDigsite") then
- game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = game:GetService("Workspace").__THINGS.Instances.AdvancedDigsite.Teleports.Enter.CFrame
- --game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = game:GetService("Workspace").__THINGS.Instances.Digsite.Teleports.Enter.CFrame
- local loaded = false
- task.spawn(function()
- task.wait(getgenv().autoDigsiteConfig.NOT_LOADED_SERVER_HOP_DELAY)
- if not loaded then
- task.wait(getgenv().autoDigsiteConfig.SERVER_HOP_DELAY)
- loadstring(game:HttpGet("https://raw.githubusercontent.com/fdvll/pet-simulator-99/main/serverhop.lua"))()
- end
- end)
- local detectLoad = game:GetService("Workspace").__THINGS.__INSTANCE_CONTAINER.Active.ChildAdded:Connect(function(child)
- if child.Name == "AdvancedDigsite" then
- loaded = true
- end
- end)
- repeat
- task.wait()
- until loaded
- detectLoad:Disconnect()
- task.wait(1)
- end
- loadstring(game:HttpGet("https://raw.githubusercontent.com/fdvll/pet-simulator-99/main/cpuReducer.lua"))()
- local function findBlock()
- local dist = 9999
- local block = nil
- for _, v in pairs(game:GetService("Workspace").__THINGS.__INSTANCE_CONTAINER.Active.AdvancedDigsite.Important.ActiveBlocks:GetChildren()) do
- if v:IsA("BasePart") then
- local magnitude = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Position).Magnitude
- if magnitude <= dist then
- dist = magnitude
- block = v
- end
- end
- end
- return block
- end
- local function findChest()
- local dist = 9999
- local chest = nil
- for _, v in pairs(game:GetService("Workspace").__THINGS.__INSTANCE_CONTAINER.Active.AdvancedDigsite.Important.ActiveChests:GetChildren()) do
- if v:IsA("Model") then
- local magnitude = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Top.Position).Magnitude
- if magnitude <= dist then
- dist = magnitude
- chest = v
- end
- end
- end
- return chest
- end
- local noChestCount = os.clock()
- while getgenv().autoDigsite do
- local chest = findChest()
- local block = findBlock()
- if not chest then
- repeat task.wait(0.30)
- game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = block.CFrame
- game:GetService("ReplicatedStorage").Network:WaitForChild("Instancing_FireCustomFromClient"):FireServer("AdvancedDigsite", "DigBlock", block:GetAttribute('Coord'))
- until block
- elseif chest then
- game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = chest.Top.CFrame
- game:GetService("ReplicatedStorage").Network:WaitForChild("Instancing_FireCustomFromClient"):FireServer("AdvancedDigsite", "DigChest", chest:GetAttribute('Coord'))
- end
- task.wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement