matthewgeoff6

Untitled

Apr 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.18 KB | None | 0 0
  1. --This script is created by LyonPlayz
  2. --I have to credit: Kid Atlaas/FileExplorer for making their ESP cause i stole some variables from them
  3.  
  4. local Hint = Instance.new("Hint", game.Workspace)
  5. Hint.Text = "Loading"
  6.  
  7. local function ESP()
  8. for i,v in pairs(game.Players:GetChildren()) do
  9.         if v ~= game.Players.LocalPlayer then
  10.             if v.Character.Humanoid.RigType == "R6" then
  11.                 local ESP1 = Instance.new("BillboardGui", workspace.Camera)
  12.                 local ESP2 = Instance.new("Frame", ESP1)
  13.                 ESP1.AlwaysOnTop = true
  14.                 ESP1.Enabled = true
  15.                 ESP1.Size = UDim2.new(4.5,0,6,0)
  16.                 ESP1.Name = "ESP"
  17.                 ESP1.Adornee = v.Character.Torso
  18.                 ESP1.StudsOffset = Vector3.new(0, -0.6, 0)
  19.                     if v.Team ~= nil then  
  20.                         local function Traingle()
  21.                             if v.Team ~= game.Players.LocalPlayer.Team then
  22.                                 ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  23.                                 ESP2.BackgroundTransparency = 0.75
  24.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  25.                                 ESP2.BorderSizePixel = 2
  26.                                 ESP2.Size = UDim2.new(1,0,1,0)
  27.                             else
  28.                                 ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  29.                                 ESP2.BackgroundTransparency = 0.8
  30.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  31.                                 ESP2.BorderSizePixel = 2
  32.                                 ESP2.Size = UDim2.new(1,0,1,0)
  33.                             end
  34.                         end
  35.                         Traingle()
  36.                     else       
  37.                         wait(2)
  38.                         local function Traingle()
  39.                             if v.Team ~= game.Players.LocalPlayer.Team then
  40.                                 ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  41.                                 ESP2.BackgroundTransparency = 0.75
  42.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  43.                                 ESP2.BorderSizePixel = 2
  44.                                 ESP2.Size = UDim2.new(1,0,1,0)
  45.                             else
  46.                                 ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  47.                                 ESP2.BackgroundTransparency = 0.8
  48.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  49.                                 ESP2.BorderSizePixel = 2
  50.                                 ESP2.Size = UDim2.new(1,0,1,0)
  51.                             end
  52.                         end
  53.                         Traingle()
  54.                     end
  55.             else
  56.                 local ESP1 = Instance.new("BillboardGui", workspace.Camera)
  57.                 local ESP2 = Instance.new("Frame", ESP1)
  58.                 ESP1.AlwaysOnTop = true
  59.                 ESP1.Enabled = true
  60.                 ESP1.Size = UDim2.new(4.5,0,6,0)
  61.                 ESP1.Name = "ESP"
  62.                 ESP1.Adornee = v.Character.UpperTorso
  63.                 ESP1.StudsOffset = Vector3.new(0, -0.6, 0)
  64.                     if v.Team ~= nil then  
  65.                         local function Traingle()
  66.                             if v.Team ~= game.Players.LocalPlayer.Team then
  67.                                     ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  68.                                 ESP2.BackgroundTransparency = 0.75
  69.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  70.                                 ESP2.BorderSizePixel = 2
  71.                                 ESP2.Size = UDim2.new(1,0,1,0)
  72.                             else
  73.                                 ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  74.                                 ESP2.BackgroundTransparency = 0.8
  75.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  76.                                 ESP2.BorderSizePixel = 2
  77.                                 ESP2.Size = UDim2.new(1,0,1,0)
  78.                             end
  79.                         end
  80.                         Traingle()
  81.                     else       
  82.                         wait(2)
  83.                         local function Traingle()
  84.                             if v.Team ~= game.Players.LocalPlayer.Team then
  85.                                 ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  86.                                 ESP2.BackgroundTransparency = 0.75
  87.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  88.                                 ESP2.BorderSizePixel = 2
  89.                                 ESP2.Size = UDim2.new(1,0,1,0)
  90.                             else
  91.                                 ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  92.                                 ESP2.BackgroundTransparency = 0.8
  93.                                 ESP2.BorderColor3 = Color3.new(0,0,0)
  94.                                 ESP2.BorderSizePixel = 2
  95.                                 ESP2.Size = UDim2.new(1,0,1,0)
  96.                             end
  97.                         end
  98.                         Traingle()
  99.                     end
  100.                 end
  101.             end
  102.         end
  103. end
  104.  
  105. ESP()
  106.  
  107. game.Players.PlayerAdded:connect(function(Player)
  108. wait(2)
  109. if Player ~= game.Players.LocalPlayer then 
  110.     if Player.Character.Humanoid.RigType == "R6" then
  111.         local ESP1 = Instance.new("BillboardGui", workspace.Camera)
  112.         local ESP2 = Instance.new("Frame", ESP1)
  113.         ESP1.AlwaysOnTop = true
  114.         ESP1.Enabled = true
  115.         ESP1.Size = UDim2.new(4.5,0,6,0)
  116.         ESP1.Name = "ESP"
  117.         ESP1.Adornee = Player.Character.Torso
  118.         ESP1.StudsOffset = Vector3.new(0, -0.6, 0)
  119.             if Player.Team ~= nil then 
  120.                 local function Traingle()
  121.                     if Player.Team ~= game.Players.LocalPlayer.Team then
  122.                         ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  123.                         ESP2.BackgroundTransparency = 0.75
  124.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  125.                         ESP2.BorderSizePixel = 2
  126.                         ESP2.Size = UDim2.new(1,0,1,0)
  127.                     else
  128.                         ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  129.                         ESP2.BackgroundTransparency = 0.8
  130.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  131.                         ESP2.BorderSizePixel = 2
  132.                         ESP2.Size = UDim2.new(1,0,1,0)
  133.                     end
  134.                 end
  135.                 Traingle()
  136.             else       
  137.                 wait(2)
  138.                 local function Traingle()
  139.                 if Player.Team ~= game.Players.LocalPlayer.Team then
  140.                         ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  141.                         ESP2.BackgroundTransparency = 0.75
  142.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  143.                         ESP2.BorderSizePixel = 2
  144.                         ESP2.Size = UDim2.new(1,0,1,0)
  145.                     else
  146.                         ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  147.                         ESP2.BackgroundTransparency = 0.8
  148.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  149.                         ESP2.BorderSizePixel = 2
  150.                         ESP2.Size = UDim2.new(1,0,1,0)
  151.                     end
  152.                 end
  153.                 Traingle()
  154.             end
  155.     else
  156.         local ESP1 = Instance.new("BillboardGui", workspace.Camera)
  157.         local ESP2 = Instance.new("Frame", ESP1)
  158.         ESP1.AlwaysOnTop = true
  159.         ESP1.Enabled = true
  160.         ESP1.Size = UDim2.new(4.5,0,6,0)
  161.         ESP1.Name = "ESP"
  162.         ESP1.Adornee = Player.Character.UpperTorso
  163.         ESP1.StudsOffset = Vector3.new(0, -0.6, 0)
  164.             if Player.Team ~= nil then 
  165.                 local function Traingle()
  166.                     if Player.Team ~= game.Players.LocalPlayer.Team then
  167.                         ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  168.                         ESP2.BackgroundTransparency = 0.75
  169.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  170.                         ESP2.BorderSizePixel = 2
  171.                         ESP2.Size = UDim2.new(1,0,1,0)
  172.                     else
  173.                         ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  174.                         ESP2.BackgroundTransparency = 0.8
  175.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  176.                         ESP2.BorderSizePixel = 2
  177.                         ESP2.Size = UDim2.new(1,0,1,0)
  178.                     end
  179.                 end
  180.             Traingle()
  181.         else       
  182.             wait(2)
  183.                 local function Traingle()
  184.                     if Player.Team ~= game.Players.LocalPlayer.Team then
  185.                         ESP2.BackgroundColor3 = Color3.new(200, 0, 0)
  186.                         ESP2.BackgroundTransparency = 0.75
  187.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  188.                         ESP2.BorderSizePixel = 2
  189.                         ESP2.Size = UDim2.new(1,0,1,0)
  190.                     else
  191.                         ESP2.BackgroundColor3 = Color3.new(0, 0, 200)
  192.                         ESP2.BackgroundTransparency = 0.8
  193.                         ESP2.BorderColor3 = Color3.new(0,0,0)
  194.                         ESP2.BorderSizePixel = 2
  195.                         ESP2.Size = UDim2.new(1,0,1,0)
  196.                     end
  197.                 end
  198.                 Traingle()
  199.             end
  200.         end
  201.     end
  202. end)
  203.  
  204. function onKeyPress(actionName, userInputState, inputObject)
  205.     if userInputState == Enum.UserInputState.Begin then
  206.         local Resetting = Instance.new("Hint", game.Workspace)
  207.         Resetting.Text = "Resetting"
  208.         for i,v in pairs(game.Workspace.Camera:GetChildren()) do
  209.             if v.Name == "ESP" then
  210.                 v:Destroy()
  211.             end
  212.         end
  213.         wait()
  214.         ESP()
  215.         Resetting.Text = "Resetting Done"
  216.         wait(2)
  217.         Resetting:Destroy()
  218.     end
  219. end
  220.  
  221.  
  222. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.P)
  223.  
  224. local Hint2 = Instance.new("Hint", game.Workspace)
  225. Hint2.Text = 'Press "P" to reset, This script is made by: LyonPlayz'
  226.  
  227. Hint.Text = "Loading Done"
  228. wait(5)
  229. Hint:Destroy()
Add Comment
Please, Sign In to add comment