- --{"Coal", "Copper", "Zinc", "Iron", "Silver", "Gold", "Limestone"}
- local ores = {"Silver", "Gold"}
-
- getgenv().oreEspTransparency = 0.7
-
- for _, v in pairs(game:GetService("Workspace").WORKSPACE_Interactables.Mining.OreDeposits:GetDescendants()) do
- if v.Name == "MaxHealth" then
- local oreName = v.Parent.Parent.Parent.Name
- local Ore = v.Parent.Parent:FindFirstChild(oreName.."Ore")
-
- if table.find(ores, oreName) and Ore:FindFirstChild("OreESP") == nil then
- local billboardGui = Instance.new("BillboardGui")
- billboardGui.Name = "OreText"
- billboardGui.Parent = Ore
- billboardGui.Adornee = Ore
- billboardGui.AlwaysOnTop = true
- billboardGui.Size = UDim2.new(1, 0, 1, 0)
- billboardGui.StudsOffset = Vector3.new(0, 2, 0)
-
- local textLabel = Instance.new("TextLabel")
- textLabel.Parent = billboardGui
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Text = oreName
- textLabel.TextColor3 = Color3.new(1, 1, 1)
- textLabel.TextStrokeTransparency = 0
- textLabel.TextSize = 24
- textLabel.ZIndex = 11
- textLabel.Font = Enum.Font.SourceSansBold
- textLabel.TextTransparency = getgenv().oreEspTransparency
-
- local a = Instance.new("BoxHandleAdornment")
- a.Name = "OreChams"
- a.Parent = Ore
- a.Adornee = Ore
- a.AlwaysOnTop = true
- a.ZIndex = 10
- a.Size = Ore.Size
- a.Transparency = getgenv().oreEspTransparency
- a.Color = BrickColor.new(Ore.Color)
-
- elseif table.find(ores, oreName) == nil and Ore:FindFirstChild("OreText") or Ore:FindFirstChild("OreChams") then
- Ore:FindFirstChild("OreText"):Destroy()
- Ore:FindFirstChild("OreChams"):Destroy()
- end
- end
- end