Advertisement
WAOKyoNaga

ESP ALL Players

Jul 5th, 2019
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.93 KB | None | 0 0
  1. uis = game:GetService("UserInputService")
  2. cg = game:GetService("CoreGui")
  3. sg = game:GetService("StarterGui")
  4. wp = game:GetService("Workspace")
  5. cmr = wp.Camera
  6. rs = game:GetService("ReplicatedStorage")
  7. rsd = game:GetService("RunService").RenderStepped
  8. lgt = game:GetService("Lighting")
  9. plrs = game:GetService("Players")
  10. lplr = plrs.LocalPlayer
  11. mouse = lplr:GetMouse()
  12. VirtualUser = game:GetService("VirtualUser")
  13.  
  14. if _G.faces == nil then
  15.     _G.faces = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
  16. end
  17.  
  18. function createESP(parent)
  19.     local bgui = Instance.new("BillboardGui", parent.Character.Head)
  20.     bgui.Name = ("EGUI")
  21.     bgui.AlwaysOnTop = true
  22.     bgui.ExtentsOffset = Vector3.new(0, 3, 0)
  23.     bgui.Size = UDim2.new(0, 200, 0, 50)
  24.     local nam = Instance.new("TextLabel", bgui)
  25.     nam.Text = parent.Name
  26.     nam.BackgroundTransparency = 1
  27.     nam.TextSize = 14
  28.     nam.Font = ("Arial")
  29.     nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  30.     nam.Size = UDim2.new(0, 200, 0, 50)
  31.     for _, p in pairs(parent.Character:GetChildren()) do
  32.         if p.Name == ("Head") then
  33.             for _, f in pairs(_G.faces) do
  34.                 local m = Instance.new("SurfaceGui", p)
  35.                 m.Name = ("EGUI")
  36.                 m.Face = f
  37.                 m.Active = true
  38.                 m.AlwaysOnTop = true
  39.                 local mf = Instance.new("Frame", m)
  40.                 mf.Size = UDim2.new(1, 0, 1, 0)
  41.                 mf.BorderSizePixel = 0
  42.                 mf.BackgroundTransparency = 0.5
  43.                 mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  44.             end
  45.         end
  46.     end
  47. end
  48.  
  49. function enableESPCode()
  50.     for _, o in pairs(plrs:GetPlayers()) do
  51.         if o.Name ~= lplr.Name then
  52.             o.CharacterAdded:Connect(
  53.                 function(characterModel)
  54.                     if characterModel:WaitForChild("Head") then
  55.                         wait(0.5)
  56.                         createESP(o)
  57.                     end
  58.                 end
  59.             )
  60.         end
  61.     end
  62.  
  63.     plrs.PlayerAdded:Connect(
  64.         function(newPlayer)
  65.             newPlayer.CharacterAdded:Connect(
  66.                 function(characterModel)
  67.                     if characterModel:WaitForChild("Head") then
  68.                         wait(0.5)
  69.                         createESP(newPlayer)
  70.                     end
  71.                 end
  72.             )
  73.         end
  74.     )
  75. end
  76.  
  77. enableESPCode()
  78.  
  79. function espFirst()
  80.     for _, o in pairs(plrs:GetPlayers()) do
  81.         if o.Name ~= lplr.Name then
  82.             spawn(
  83.                 function()
  84.                     if o.Character:FindFirstChild("Head") then
  85.                         wait(0.1)
  86.                         createESP(o)
  87.                     end
  88.                 end
  89.             )
  90.         end
  91.     end
  92. end
  93. espFirst()
  94.  
  95. lplr.Idled:connect(
  96.     function()
  97.         VirtualUser:CaptureController()
  98.         VirtualUser:ClickButton2(Vector2.new())
  99.     end
  100. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement