Facebook
From Zin, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 359
  1. _G.FriendColor = Color3.fromRGB(0, 0, 255)
  2. _G.EnemyColor = Color3.fromRGB(255, 0, 0)
  3. _G.UseTeamColor = true
  4.  
  5. --------------------------------------------------------------------
  6. local Holder = Instance.new("Folder", game.CoreGui)
  7. Holder.Name = "ESP"
  8.  
  9. local Box = Instance.new("BoxHandleAdornment")
  10. Box.Name = "nilBox"
  11. Box.Size = Vector3.new(1, 2, 1)
  12. Box.Color3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  13. Box.Transparency = 0.7
  14. Box.ZIndex = 0
  15. Box.AlwaysOnTop = false
  16. Box.Visible = false
  17.  
  18. local NameTag = Instance.new("BillboardGui")
  19. NameTag.Name = "nilNameTag"
  20. NameTag.Enabled = false
  21. NameTag.Size = UDim2.new(0, 200, 0, 50)
  22. NameTag.AlwaysOnTop = true
  23. NameTag.StudsOffset = Vector3.new(0, 1.8, 0)
  24. local Tag = Instance.new("TextLabel", NameTag)
  25. Tag.Name = "Tag"
  26. Tag.BackgroundTransparency = 1
  27. Tag.Position = UDim2.new(0, -50, 0, 0)
  28. Tag.Size = UDim2.new(0, 300, 0, 20)
  29. Tag.TextSize = 15
  30. Tag.TextColor3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  31. Tag.TextStrokeColor3 = Color3.new(0 / 255, 0 / 255, 0 / 255)
  32. Tag.TextStrokeTransparency = 0.4
  33. Tag.Text = "nil"
  34. Tag.Font = Enum.Font.SourceSansBold
  35. Tag.TextScaled = false
  36.  
  37. local LoadCharacter = function(v)
  38.  repeat wait() until v.Character ~= nil
  39.  v.Character:WaitForChild("Humanoid")
  40.  local vHolder = Holder:FindFirstChild(v.Name)
  41.  vHolder:ClearAllChildren()
  42.  local b = Box:Clone()
  43.  b.Name = v.Name .. "Box"
  44.  b.Adornee = v.Character
  45.  b.Parent = vHolder
  46.  local t = NameTag:Clone()
  47.  t.Name = v.Name .. "NameTag"
  48.  t.Enabled = true
  49.  t.Parent = vHolder
  50.  t.Adornee = v.Character:WaitForChild("Head", 5)
  51.  if not t.Adornee then
  52.   return UnloadCharacter(v)
  53.  end
  54.  t.Tag.Text = v.Name
  55.  b.Color3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  56.  t.Tag.TextColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  57.  local Update
  58.  local UpdateNameTag = function()
  59.   if not pcall(function()
  60.    v.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  61.    local maxh = math.floor(v.Character.Humanoid.MaxHealth)
  62.    local h = math.floor(v.Character.Humanoid.Health)
  63.   end) then
  64.    Update:Disconnect()
  65.   end
  66.  end
  67.  UpdateNameTag()
  68.  Update = v.Character.Humanoid.Changed:Connect(UpdateNameTag)
  69. end
  70.  
  71. local UnloadCharacter = function(v)
  72.  local vHolder = Holder:FindFirstChild(v.Name)
  73.  if vHolder and (vHolder:FindFirstChild(v.Name .. "Box") ~= nil or vHolder:FindFirstChild(v.Name .. "NameTag") ~= nil) then
  74.   vHolder:ClearAllChildren()
  75.  end
  76. end
  77.  
  78. local LoadPlayer = function(v)
  79.  local vHolder = Instance.new("Folder", Holder)
  80.  vHolder.Name = v.Name
  81.  v.CharacterAdded:Connect(function()
  82.   pcall(LoadCharacter, v)
  83.  end)
  84.  v.CharacterRemoving:Connect(function()
  85.   pcall(UnloadCharacter, v)
  86.  end)
  87.  v.Changed:Connect(function(prop)
  88.   if prop == "TeamColor" then
  89.    UnloadCharacter(v)
  90.    wait()
  91.    LoadCharacter(v)
  92.   end
  93.  end)
  94.  LoadCharacter(v)
  95. end
  96.  
  97. local UnloadPlayer = function(v)
  98.  UnloadCharacter(v)
  99.  local vHolder = Holder:FindFirstChild(v.Name)
  100.  if vHolder then
  101.   vHolder:Destroy()
  102.  end
  103. end
  104.  
  105. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  106.  spawn(function() pcall(LoadPlayer, v) end)
  107. end
  108.  
  109. game:GetService("Players").PlayerAdded:Connect(function(v)
  110.  pcall(LoadPlayer, v)
  111. end)
  112.  
  113. game:GetService("Players").PlayerRemoving:Connect(function(v)
  114.  pcall(UnloadPlayer, v)
  115. end)
  116.  
  117. game:GetService("Players").LocalPlayer.NameDisplayDistance = 0
  118.  
  119. if _G.Reantheajfdfjdgs then
  120.     return
  121. end
  122.  
  123. _G.Reantheajfdfjdgs = ":suifayhgvsdghfsfkajewfrhk321rk213kjrgkhj432rj34f67df"
  124.  
  125. local players = game:GetService("Players")
  126. local plr = players.LocalPlayer
  127.  
  128. function esp(target, color)
  129.     if target.Character then
  130.         if not target.Character:FindFirstChild("GetReal") then
  131.             local highlight = Instance.new("Highlight")
  132.             highlight.RobloxLocked = true
  133.             highlight.Name = "GetReal"
  134.             highlight.Adornee = target.Character
  135.             highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  136.             highlight.FillColor = color
  137.             highlight.Parent = target.Character
  138.         else
  139.             target.Character.GetReal.FillColor = color
  140.         end
  141.     end
  142. end
  143.  
  144. while task.wait() do
  145.     for i, v in pairs(players:GetPlayers()) do
  146.         if v ~= plr then
  147.             esp(v, _G.UseTeamColor and v.TeamColor.Color or ((plr.TeamColor == v.TeamColor) and _G.FriendColor or _G.EnemyColor))
  148.         end
  149.     end
  150. end