SHARE
TWEET

Untitled

Vzurxy Dec 2nd, 2018 (edited) 122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --angeld23's ESP + Chams
  2. --Made from scratch, report any bugs to angeld23#6785 on Discord
  3. --Obviously inspired by RacistDolphin's ESP + Chams, this is pretty much the same with a better looking GUI.
  4. --Keep in mind that I've never done something like this before, so it's a pretty big deal to me
  5.  
  6. warn([[angeld23's ESP + Chams Loaded
  7.     Changelog:
  8.     -------------------
  9.  
  10.     v1.2.0 (11/11/2018)
  11.         + ESP will now automatically check for every players' team every 20 seconds
  12.     -------------------
  13.    
  14.     v1.1.0 (11/10/2018)
  15.         + Colors in FFA mode now display the TeamColor of each player
  16.     -------------------
  17.    
  18.     v1.0.1 (11/10/2018)
  19.         - Removed display of HumanoidRootPart
  20.    
  21. ]])
  22.  
  23. local settings = {
  24.     freeForAll = false,
  25.     showTeam = true,
  26.     showEnemy = true,
  27.     esp = false,
  28.     chams = true,
  29. }
  30.  
  31. local player = game:GetService("Players").LocalPlayer
  32.  
  33. local gui = game:GetObjects('rbxassetid://2552846969')[1]
  34. local espGui = game:GetObjects('rbxassetid://2552386986')[1]
  35. local chamText = game:GetObjects('rbxassetid://2552512660')[1]
  36.  
  37. chamText.Text.Visible = false
  38.  
  39. local chamsFolder = Instance.new("Folder", game:GetService("CoreGui"))
  40. chamsFolder.Name = "Chams_Storage"
  41. local espFolder = Instance.new("Folder", game:GetService("CoreGui"))
  42. espFolder.Name = "ESP_Storage"
  43.  
  44. function getColor (bool)
  45.     if bool then
  46.         return Color3.new(0, 1, 0)
  47.     else
  48.         return Color3.new(1, 0, 0)
  49.     end
  50. end
  51.  
  52. gui.Parent = game:GetService("CoreGui")
  53.  
  54. local b = gui.Background
  55.  
  56. b.ESP.BackgroundColor3 = getColor(settings.esp)
  57. b.Chams.BackgroundColor3 = getColor(settings.chams)
  58. b.FFA.BackgroundColor3 = getColor(settings.freeForAll)
  59. b.ShowA.BackgroundColor3 = getColor(settings.showTeam)
  60. b.ShowE.BackgroundColor3 = getColor(settings.showEnemy)
  61.  
  62. b.ESP.MouseButton1Click:Connect(function()
  63.     settings.esp = not settings.esp
  64.     b.ESP.BackgroundColor3 = getColor(settings.esp)
  65.     for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  66.        wait(math.random())
  67.         if v ~= player then
  68.             updateESP(v)
  69.         end
  70.     end
  71. end)
  72.  
  73. b.Chams.MouseButton1Click:Connect(function()
  74.     settings.chams = not settings.chams
  75.     b.Chams.BackgroundColor3 = getColor(settings.chams)
  76. end)
  77.  
  78. b.FFA.MouseButton1Click:Connect(function()
  79.     settings.freeForAll = not settings.freeForAll
  80.     b.FFA.BackgroundColor3 = getColor(settings.freeForAll)
  81.     for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  82.        wait(math.random())
  83.         if v ~= player then
  84.             updateESP(v)
  85.         end
  86.     end
  87. end)
  88.  
  89. b.ShowA.MouseButton1Click:Connect(function()
  90.     settings.showTeam = not settings.showTeam
  91.     b.ShowA.BackgroundColor3 = getColor(settings.showTeam)
  92.     for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  93.        wait(math.random())
  94.         if v ~= player then
  95.             updateESP(v)
  96.         end
  97.     end
  98. end)
  99.  
  100. b.ShowE.MouseButton1Click:Connect(function()
  101.     settings.showEnemy = not settings.showEnemy
  102.     b.ShowE.BackgroundColor3 = getColor(settings.showEnemy)
  103.     for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  104.        wait(math.random())
  105.         if v ~= player then
  106.             updateESP(v)
  107.         end
  108.     end
  109. end)
  110.  
  111. b.Top.Close.MouseButton1Click:Connect(function()
  112.     espGui:Destroy()
  113.     chamText:Destroy()
  114.     chamsFolder:Destroy()
  115.     gui:Destroy()
  116.     espFolder:Destroy()
  117.     script.Disabled = true
  118. end)
  119.  
  120. local minimized = false
  121. local mButton = b.Top.Minimize
  122. b.Top.Minimize.MouseButton1Click:Connect(function()
  123.     minimized = not minimized
  124.     if minimized then
  125.         mButton.Parent = b
  126.     else
  127.         mButton.Parent = b.Top
  128.     end
  129.     for i,v in pairs (b:GetChildren()) do
  130.         if v ~= mButton and v ~= b then
  131.             v.Visible = not minimized
  132.         end
  133.     end
  134.     if minimized then b.BackgroundTransparency = 1 else b.BackgroundTransparency = 0 end
  135. end)
  136.  
  137. function updateESP (plr)
  138.     if not plr.Character or not espFolder:FindFirstChild(plr.Name) then return end
  139.     espFolder[plr.Name]:ClearAllChildren()
  140.     if not settings.esp then return end
  141.     if not settings.freeForAll and plr.Team == player.Team and not settings.showTeam then return end
  142.     if not settings.freeForAll and plr.Team ~= player.Team and not settings.showEnemy then return end
  143.     if settings.freeForAll and not settings.showEnemy then return end
  144.    
  145.     for o,b in pairs (plr.Character:GetChildren()) do
  146.        wait(math.random())
  147.         if b:IsA("BasePart") and b.Name ~= "HumanoidRootPart" then
  148.             for a,z in pairs (espGui:GetChildren()) do
  149.           wait(math.random())
  150.                 local c = z:Clone()
  151.                 c.Parent = espFolder[plr.Name]
  152.                 c.Adornee = b
  153.             end
  154.         end
  155.     end
  156.    
  157.     local color = Color3.new(1, 0, 0)
  158.    
  159.     if not settings.freeForAll and plr.Team == player.Team then
  160.         color = Color3.new(0, 1, 0)
  161.     end
  162.     if settings.freeForAll then
  163.         color = plr.TeamColor.Color
  164.     end
  165.     for i,v in pairs (espFolder[plr.Name]:GetChildren()) do
  166.         v.Color.BackgroundColor3 = color
  167.     end
  168. end
  169.  
  170. function updateChams (plr)
  171.     if not settings.freeForAll and plr.Team == player.Team and not settings.showTeam then return end
  172.     if not settings.freeForAll and plr.Team ~= player.Team and not settings.showEnemy then return end
  173.     if settings.freeForAll and not settings.showEnemy then return end
  174.    
  175.     if plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") and plr.Character:FindFirstChild("HumanoidRootPart") and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  176.         local c = chamText:Clone()
  177.         c.Parent = chamsFolder
  178.         if c:FindFirstChild("Text") then
  179.             c.Text.Text = plr.Name..[[
  180.  
  181.             Health: ]]..tostring(math.floor(plr.Character.Humanoid.Health))..[[
  182.            
  183.             Distance: ]]..tostring(math.floor((plr.Character:FindFirstChild("HumanoidRootPart").Position - player.Character.HumanoidRootPart.Position).Magnitude))
  184.             c.Adornee = plr.Character:FindFirstChild("Head")
  185.             if plr.Team == player.Team and not settings.freeForAll then
  186.                 c.Text.TextColor3 = Color3.new(0, 1, 0)
  187.             end
  188.             if settings.freeForAll then
  189.                 c.Text.TextColor3 = plr.TeamColor.Color
  190.             end
  191.  
  192.             c.Text.Visible = true
  193.         end
  194.     end
  195. end
  196.  
  197. for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  198.     if v ~= player then
  199.         local f = Instance.new("Folder", espFolder)
  200.         f.Name = v.Name
  201.        
  202.         if v.Character then
  203.             for o,b in pairs (v.Character:GetChildren()) do
  204.                 if b:IsA("BasePart") then
  205.                     for a,z in pairs (espGui:GetChildren()) do
  206.                         local c = z:Clone()
  207.                         c.Parent = espFolder[v.Name]
  208.                         c.Adornee = b
  209.                     end
  210.                 end
  211.             end
  212.         end
  213.        
  214.         v.CharacterAdded:Connect(function()
  215.             wait(0.2)
  216.             updateESP(v)
  217.         end)
  218.     end
  219. end
  220.  
  221. game:GetService("Players").PlayerAdded:Connect(function(p)
  222.     local f = Instance.new("Folder", espFolder)
  223.     f.Name = p.Name
  224.    
  225.     p.CharacterAdded:Connect(function()
  226.         wait(0.2)
  227.         updateESP(p)
  228.     end)
  229. end)
  230. game:GetService("Players").PlayerRemoving:Connect(function(p)
  231.     if espFolder:FindFirstChild(p.Name) then
  232.         espFolder[p.Name]:Destroy()
  233.     end
  234. end)
  235.  
  236. for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  237.     updateESP(v)
  238. end
  239.  
  240. local updateCounter = 0
  241. local doUpdateESP = false
  242.  
  243. while wait(0.1) do
  244.     chamsFolder:ClearAllChildren()
  245.     if updateCounter == 200 then
  246.         updateCounter = 0
  247.         doUpdateESP = true
  248.     end
  249.     for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  250.         if v ~= player then
  251.             if settings.chams then
  252.                 updateChams(v)
  253.             end
  254.             if doUpdateESP then
  255.                 doUpdateESP = false
  256.                 if settings.esp then
  257.                     updateESP()
  258.                 end
  259.             end
  260.         end
  261.     end
  262. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top