--[[ Created By Quren (Discord: fuckyougitler) ]] local Players = game:GetService("Players") local player = Players.LocalPlayer local ws = game:GetService("Workspace") local runS = game:GetService("RunService") -- folders local terrains = ws:FindFirstChild("TerrainRegions") local treasures = ws:FindFirstChild("DigSiteItems"):FindFirstChild("Treasures") -- other local chinaDetector = ws:FindFirstChild("ChinaDetector") local regenTimer = ws:FindFirstChild("RegenTimer") -- vars local floatPart = Instance.new("Part", player.Character) floatPart.Size = Vector3.new(400, 0.5, 400) floatPart.Position = Vector3.new(0, -10, 0) floatPart.Anchored = true floatPart.Color = Color3.fromRGB(100, 100, 100) local function getChina() local hrp = player.Character.HumanoidRootPart local function getTreasures() for i,v in pairs(treasures:GetChildren()) do v.AssemblyLinearVelocity = Vector3.zero floatPart.Position = v.Position - Vector3.new(0, 12, 0) local hitbox = v:FindFirstChild("Hitbox") if hitbox then local ti = hitbox.TouchInterest hrp.CFrame = hitbox.CFrame firetouchinterest(chinaDetector.TouchInterest, hrp ,0) task.wait() firetouchinterest(chinaDetector.TouchInterest, hrp ,1) task.wait() end local pp = v:FindFirstChild("TreasurePrompt") if not pp then continue end pp.MaxActivationDistance = 60 pp.RequiresLineOfSight = false pp.HoldDuration = 0 hrp.AssemblyLinearVelocity = Vector3.zero hrp.CFrame = v.CFrame for i=1, 30 do fireproximityprompt(pp, 1) end end end getTreasures() -- china get for i,v in pairs(terrains:GetChildren()) do local ti = v.TouchInterest hrp.CFrame = v.CFrame firetouchinterest(ti, hrp ,0) task.wait() firetouchinterest(ti, hrp ,1) end hrp.CFrame = chinaDetector.CFrame firetouchinterest(chinaDetector.TouchInterest, hrp ,0) task.wait() firetouchinterest(chinaDetector.TouchInterest, hrp ,1) end regenTimer.Changed:Connect(function() if regenTimer.Value <= 0 then task.wait(15) -- spawning treasures getChina() end end) getChina()