Advertisement
kipr987

Esp

Aug 18th, 2023 (edited)
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. local function esp(v)
  2. spawn(function()
  3. pcall(function()
  4. if _G.Esp then
  5. repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChild("Humanoid")
  6. if v.Name ~= game:GetService("Players").LocalPlayer.Name then
  7. if v.Character:FindFirstChild("Highlight") then
  8. v.Character:FindFirstChild("Highlight"):Destroy()
  9. end
  10. hight = Instance.new("Highlight", v.Character)
  11. hight.OutlineColor = v.TeamColor.Color
  12. hight.FillTransparency = 1
  13. if not v.Character:FindFirstChild("BillboardGui") then
  14. local bill = Instance.new("BillboardGui", v.Character)
  15. bill.Adornee = v.Character
  16. bill.Size = UDim2.new(0, 200,0, 50)
  17. bill.StudsOffset = Vector3.new(0,4,0)
  18. bill.AlwaysOnTop = true
  19.  
  20. local textlabel = Instance.new("TextLabel", bill)
  21. textlabel.Size = UDim2.new(1,0,1,0)
  22. textlabel.Position = UDim2.new(0,0,0,0)
  23. textlabel.Text = v.DisplayName
  24. textlabel.BackgroundTransparency = 1
  25. textlabel.TextSize = 17
  26. textlabel.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
  27. local textlabel2 = Instance.new("TextLabel", bill)
  28. textlabel2.Size = UDim2.new(1,0,1,0)
  29. textlabel2.Text = "[0]"
  30. textlabel2.Position = UDim2.new(0, 0,-0.3, 0)
  31. textlabel2.BackgroundTransparency = 1
  32. textlabel2.TextColor3 = Color3.new(1, 1, 1)
  33. textlabel2.TextSize = 17
  34. textlabel2.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
  35. local stroke = Instance.new("UIStroke", textlabel)
  36. local stroke = Instance.new("UIStroke", textlabel2)
  37. repeat
  38. wait()
  39. textlabel.TextColor3 = v.TeamColor.Color
  40. textlabel2.Text = "["..math.floor((v.Character.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude).."]"
  41. until not bill
  42. end
  43. end
  44. else
  45. if v.Character:FindFirstChild("Highlight") then
  46. v.Character:FindFirstChild("Highlight"):Destroy()
  47. end
  48. if v.Character:FindFirstChild("BillboardGui") then
  49. v.Character:FindFirstChild("BillboardGui"):Destroy()
  50. end
  51. end
  52. end)
  53. end)
  54. end
  55.  
  56. spawn(function()
  57. while wait(2) do
  58. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  59. esp(v)
  60. end
  61. end
  62. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement