Advertisement
Urbanpower

Script – Pilgrammed (ESP ores)

Feb 17th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. local opath = game:GetService("Workspace").Ores
  2. local loc = opath.Prairie --Desert, Forest, Savanna, PrairieCave, ForestCave, DeepDesertCave, VolcanoQuarry, MountainUpper, DeepDesert, BearIsland, Underground, MountainLower...
  3.  
  4. function addESP(part, text, color)
  5. gui = Instance.new("BillboardGui", part)
  6. esp = Instance.new("TextLabel", gui)
  7. gui.Name = "Esp"
  8. gui.ResetOnSpawn = false
  9. gui.AlwaysOnTop = true;
  10. gui.LightInfluence = 0;
  11. gui.Size = UDim2.new(1.75, 0, 1.75, 0)
  12. gui.MaxDistance = -1
  13.  
  14. esp.Text = text
  15. esp.Size = UDim2.new(0.0001, 0.00001, 0.0001, 0.00001)
  16. esp.BorderSizePixel = 4
  17. esp.BorderColor3 = Color3.new(0, 255, 255)
  18. esp.BorderSizePixel = 0
  19. esp.Font = "GothamSemibold"
  20. esp.TextSize = 8
  21. esp.TextColor3 = color
  22. end
  23. _G.espEnabled = true
  24. while _G.espEnabled do
  25. for i,v in pairs(loc:GetDescendants()) do
  26. if v:IsA("Part") and v.Name ~= "Part" and v.Name ~= "Base" then
  27. if v:FindFirstChild("Esp") == nil then
  28. addESP(v, v.Name, v.Color)
  29. else
  30. distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Position).magnitude
  31.  
  32. v.Esp.TextLabel.Text = v.Name .. " (" .. math.floor(distance) .. ") "
  33. end
  34. end
  35. end
  36. wait()
  37. end
  38. if _G.espEnabled == false then
  39. ores = game:GetService("Workspace").Ores.Prairie:GetDescendants()
  40. for i,v in pairs(ores) do
  41. if v:IsA("Part") then
  42. if v:FindFirstChild("Esp") then v:FindFirstChild("Esp"):Destroy()
  43.  
  44. end
  45. end
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement