Advertisement
ski1lzhub

gpoesp

Jul 6th, 2022
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. _G.espEnabled = true
  2.  
  3.  
  4. function addESP(part, text)
  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 = Color3.fromRGB(0, 0, 255)
  22. end
  23.  
  24.  
  25.  
  26. while _G.espEnabled do
  27. players = game:GetService("Players"):GetChildren()
  28. if player ~= game:GetService("Players").LocalPlayer then
  29. for _,player in pairs(players) do
  30. if player.Character.Head:FindFirstChild("Esp") == nil then
  31. addESP(player.Character.Head, player.Name)
  32. else
  33. bounty = player.leaderstats.Bounty.Value
  34. distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude
  35. player.Character.Head.Esp.TextLabel.Text = player.Name .. " (" .. math.floor(distance) .. ") " .. bounty .. " bounty"
  36. end
  37. end
  38. end
  39. wait()
  40. end
  41. if _G.espEnabled == false then
  42. players = game:GetService("Players"):GetChildren()
  43.  
  44. for _,player in pairs(players) do
  45. if player.Character.Head:FindFirstChild("Esp") then
  46. player.Character.Head:FindFirstChild("Esp"):Destroy()
  47. end
  48. end
  49. end
  50.  
  51.  
  52.  
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement