Advertisement
kipr987

Esp

Oct 18th, 2024 (edited)
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.05 KB | None | 0 0
  1. spawn(function()
  2. while task.wait(1) do
  3.     pcall(function()
  4.         if _G.Esp then
  5.             for i, v in game:GetService("Players"):GetChildren() do
  6.                 if v.Name ~= game:GetService("Players").LocalPlayer.Name then
  7.                     if not v.Character:FindFirstChild("Highlight") then
  8.                         hight = Instance.new("Highlight", v.Character)
  9.                         hight.FillTransparency = 1
  10.                         hight.OutlineColor = v.TeamColor.Color
  11.                     end
  12.                     if not v.Character:FindFirstChild("BillboardGui") then
  13.                         local bill = Instance.new("BillboardGui", v.Character)
  14.                         bill.Adornee = v.Character
  15.                         bill.Size = UDim2.new(0, 200,0, 50)
  16.                         bill.StudsOffset = Vector3.new(0,4,0)
  17.                         bill.AlwaysOnTop = true
  18.  
  19.                         local textlabel = Instance.new("TextLabel", bill)
  20.                         textlabel.Size = UDim2.new(1,0,1,0)
  21.                         textlabel.Position = UDim2.new(0,0,0,0)
  22.                         textlabel.Name = "TextLabelTitle"
  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.                        
  28.                         textlabel2 = Instance.new("TextLabel", bill)
  29.                         textlabel2.Size = UDim2.new(1,0,1,0)
  30.                         textlabel2.Text = "[0]"
  31.                         textlabel2.Position = UDim2.new(0, 0,-0.3, 0)
  32.                         textlabel2.BackgroundTransparency = 1
  33.                         textlabel2.TextColor3 = Color3.new(1, 1, 1)
  34.                         textlabel2.TextSize = 17
  35.                         textlabel2.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
  36.                        
  37.                         textlabel3 = Instance.new("TextLabel", bill)
  38.                         textlabel3.Size = UDim2.new(1,0,1,0)
  39.                         textlabel3.Text = ""
  40.                         textlabel3.Name = "Bounty"
  41.                         textlabel3.Position = UDim2.new(0, 0,-0.6, 0)
  42.                         textlabel3.BackgroundTransparency = 1
  43.                         textlabel3.TextColor3 = Color3.new(0, 1, 0.0313725)
  44.                         textlabel3.TextSize = 17
  45.                         textlabel3.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
  46.                         textlabel.TextColor3 = v.TeamColor.Color
  47.                         local stroke = Instance.new("UIStroke", textlabel)
  48.                         local stroke = Instance.new("UIStroke", textlabel2)
  49.                         local stroke = Instance.new("UIStroke", textlabel3)
  50.                         spawn(function()
  51.                         while task.wait(1) do
  52.                             pcall(function()
  53.                                 v.Character.BillboardGui.TextLabel.Text = "["..math.floor((v.Character.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude).."]"
  54.                                 textlabel.TextColor3 = v.TeamColor.Color
  55.                                 v.Character.Highlight.OutlineColor = v.TeamColor.Color
  56.                             end)    
  57.                         end
  58.                         end)
  59.                     end
  60.                 end
  61.             end
  62.             else
  63.             for i, v in game:GetService("Players"):GetChildren() do
  64.                 if v.Character:FindFirstChild("Highlight") then
  65.                     v.Character:FindFirstChild("Highlight"):Destroy()
  66.                 end
  67.                 if v.Character:FindFirstChild("BillboardGui") then
  68.                     v.Character:FindFirstChild("BillboardGui"):Destroy()
  69.                 end
  70.             end
  71.         end
  72.     end)
  73. end
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement