1. --{"Coal", "Copper", "Zinc", "Iron", "Silver", "Gold", "Limestone"}
  2. local ores = {"Silver", "Gold"}
  3. getgenv().oreEspTransparency = 0.7
  4. for _, v in pairs(game:GetService("Workspace").WORKSPACE_Interactables.Mining.OreDeposits:GetDescendants()) do
  5. if v.Name == "MaxHealth" then
  6. local oreName = v.Parent.Parent.Parent.Name
  7. local Ore = v.Parent.Parent:FindFirstChild(oreName.."Ore")
  8. if table.find(ores, oreName) and Ore:FindFirstChild("OreESP") == nil then
  9. local billboardGui = Instance.new("BillboardGui")
  10. billboardGui.Name = "OreText"
  11. billboardGui.Parent = Ore
  12. billboardGui.Adornee = Ore
  13. billboardGui.AlwaysOnTop = true
  14. billboardGui.Size = UDim2.new(1, 0, 1, 0)
  15. billboardGui.StudsOffset = Vector3.new(0, 2, 0)
  16. local textLabel = Instance.new("TextLabel")
  17. textLabel.Parent = billboardGui
  18. textLabel.Size = UDim2.new(1, 0, 1, 0)
  19. textLabel.BackgroundTransparency = 1
  20. textLabel.Text = oreName
  21. textLabel.TextColor3 = Color3.new(1, 1, 1)
  22. textLabel.TextStrokeTransparency = 0
  23. textLabel.TextSize = 24
  24. textLabel.ZIndex = 11
  25. textLabel.Font = Enum.Font.SourceSansBold
  26. textLabel.TextTransparency = getgenv().oreEspTransparency
  27. local a = Instance.new("BoxHandleAdornment")
  28. a.Name = "OreChams"
  29. a.Parent = Ore
  30. a.Adornee = Ore
  31. a.AlwaysOnTop = true
  32. a.ZIndex = 10
  33. a.Size = Ore.Size
  34. a.Transparency = getgenv().oreEspTransparency
  35. a.Color = BrickColor.new(Ore.Color)
  36. elseif table.find(ores, oreName) == nil and Ore:FindFirstChild("OreText") or Ore:FindFirstChild("OreChams") then
  37. Ore:FindFirstChild("OreText"):Destroy()
  38. Ore:FindFirstChild("OreChams"):Destroy()
  39. end
  40. end
  41. end