xDavid673x

ESP

Aug 7th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.86 KB | None | 0 0
  1. local setkey = "b" -- change to something like "g" or whatever to change it
  2. local waitduration = 0.5 -- the amount of time before the ESP updates (removes all current ESP objects and makes new ones)
  3.  
  4. --=you don't have to edit below but you can i guess=--
  5.  
  6.  
  7. local plr = game:GetService('Players').LocalPlayer
  8.  
  9. function getteam(plr) -- yeah i did this instead of getting their actual team because for some reason that doesnt work sometimes idk why
  10.     local thang = nil
  11.     if plr.TeamColor then
  12.         for i,v in pairs(game:GetService('Teams'):GetChildren()) do
  13.             if v.TeamColor == plr.TeamColor then
  14.                 thang = v
  15.             end
  16.         end
  17.     end
  18.     return thang
  19. end
  20.  
  21. local plr = game:GetService('Players').LocalPlayer
  22. if plr:FindFirstChild('Zz1pF800p8lDrsOQgGiqa') ==nil then
  23.    
  24.  
  25. local thingy = Instance.new('IntValue',plr)
  26. thingy.Name="Zz1pF800p8lDrsOQgGiqa"
  27. thingy.AncestryChanged:connect(function()
  28.     wait()
  29.     thingy.Parent = plr
  30. end)
  31. local mou = plr:GetMouse()
  32. local active = false
  33.  
  34. function invert(Color)
  35.     return Color3.new((255 - Color.r * 255)/255, (255 - Color.g * 255)/255, (255 - Color.b * 255)/255)
  36. end
  37.  
  38. function heil()
  39.     for i,v in pairs(game:GetService('CoreGui'):GetChildren()) do
  40.         if v:IsA('Folder') and (game:GetService('Players'):FindFirstChild(v.Name) or v:FindFirstChildOfClass("BillboardGui") or v:FindFirstChildOfClass("BoxHandleAdornment")) then
  41.             v:Destroy()
  42.         end
  43.     end
  44.     if active == true then
  45.         for i,v in pairs(game:GetService('Players'):GetChildren()) do
  46.             if v.Character and v~=plr then
  47.                 if game:GetService('CoreGui'):FindFirstChild(v.Name) == nil then
  48.                     local folder = Instance.new('Folder',game:GetService('CoreGui'))
  49.                     folder.Name = v.Name
  50.                     if v.Character:FindFirstChild('Head') then
  51.                         local gui = Instance.new('BillboardGui',folder)
  52.                         gui.Adornee = v.Character.Head
  53.                         gui.AlwaysOnTop = true
  54.                         gui.LightInfluence = 0
  55.                         gui.Size = UDim2.new(10,0,2,0)
  56.                         gui.StudsOffset=Vector3.new(0,4,0)
  57.                         local text = Instance.new('TextLabel',gui)
  58.                         if getteam(v) then
  59.                             text.BackgroundColor3 = v.TeamColor.Color
  60.                             text.TextColor3 = invert(v.TeamColor.Color)
  61.                             text.BorderColor3 = v.TeamColor.Color
  62.                         else
  63.                             text.BackgroundColor3 = Color3.new(1,1,1)
  64.                             text.TextColor3 = Color3.new(0,0,0)
  65.                             text.BorderColor3 = Color3.new(1,1,01)
  66.                         end
  67.                         text.BorderSizePixel = 2
  68.                         text.Size = UDim2.new(1,0,1,0)
  69.                         text.TextScaled = true
  70.                         text.Text = v.Name
  71.                         text.TextYAlignment = Enum.TextYAlignment.Top
  72.                         text.Font = Enum.Font.SourceSansBold
  73.                         local text2 = Instance.new('TextLabel',text)
  74.                         text2.BackgroundTransparency = 1
  75.                         text2.Size = UDim2.new(1,0,0.3,0)
  76.                         text2.Position = UDim2.new(0,0,0.7,0)
  77.                         text2.TextScaled = true
  78.                         if getteam(v) then
  79.                             text2.Text = [[Team: "]]..getteam(v).Name..[["]]
  80.                         else
  81.                             text2.Text = [[Team: "None"]]
  82.                         end
  83.                         text2.Font = Enum.Font.SourceSansBold
  84.                         if getteam(v) then
  85.                             text2.TextColor3 = invert(v.TeamColor.Color)
  86.                         else
  87.                             text2.TextColor3 = Color3.new(0,0,0)
  88.                         end
  89.                     end
  90.                     if (v.Character:FindFirstChild('Head')) then
  91.                     for _,part in pairs(v.Character:GetChildren()) do
  92.                         if part:IsA('BasePart') then
  93.                             local coru=coroutine.wrap(function()
  94.                             local endtransparency = part.Transparency
  95.                             local adorn = Instance.new('BoxHandleAdornment',folder)
  96.                             adorn.Name = v.Name
  97.                             if part.Name ~= "Head" then
  98.                                 adorn.Size = part.Size
  99.                             else
  100.                                 adorn.Size = (part.Size)-Vector3.new(part.Size.X/2,0,0)
  101.                             end
  102.                             adorn.Adornee = part
  103.                             adorn.AlwaysOnTop = true
  104.                             adorn.ZIndex = 5
  105.                             adorn.Transparency = endtransparency
  106.                             adorn.Color3 = Color3.fromRGB(255, 44, 17)
  107.                             local adorn2 = Instance.new('BoxHandleAdornment',folder)
  108.                             adorn2.Name = v.Name
  109.                             if part.Name ~= "Head" then
  110.                                 adorn2.Size = part.Size*1.1
  111.                             else
  112.                                 adorn2.Size = (part.Size*1.1)-Vector3.new(part.Size.X/2,0,0)
  113.                             end
  114.                             adorn2.Adornee = part
  115.                             adorn2.AlwaysOnTop = true
  116.                             adorn2.ZIndex = 2
  117.                             adorn2.Transparency = endtransparency+0.1
  118.                             adorn2.Color3 = Color3.fromRGB(183, 209, 73)
  119.                             local adorn3 = Instance.new('BoxHandleAdornment',folder)
  120.                             adorn3.Name = v.Name
  121.                             if part.Name ~= "Head" then
  122.                                 adorn3.Size = part.Size*1.15
  123.                             else
  124.                                 adorn3.Size = (part.Size*1.15)-Vector3.new(part.Size.X/2,0,0)
  125.                             end
  126.                             adorn3.Adornee = part
  127.                             adorn3.AlwaysOnTop = true
  128.                             adorn3.ZIndex = 1
  129.                             adorn3.Transparency = endtransparency+0.2
  130.                             adorn3.Color3 = Color3.fromRGB(35, 166, 184)
  131.                             end)
  132.                             coru()
  133.                         end
  134.                     end
  135.                     end
  136.                 end
  137.             end
  138.         end
  139.     end
  140. end
  141.  
  142. mou.KeyDown:connect(function(key)
  143.     if key==setkey then
  144.         active = not active
  145.     end
  146. end)
  147.  
  148. while true do
  149.     heil()
  150.     wait(waitduration)
  151. end
  152.  
  153. end
Add Comment
Please, Sign In to add comment