Advertisement
SlyHades66

Chams-Ish

Jul 15th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.89 KB | None | 0 0
  1. --Player Whitelist(People who don't get shot at.)
  2. local Whitelist = {"Scapters", "Lua_Environment", "like_clockwork", "Gin_Freecs", "AimWorks"}
  3. for i,v in pairs(game.Players:GetChildren()) do  --Adds anyone in-game who's friends with the Currenet player into the list.
  4.     if game.Players.LocalPlayer:IsFriendsWith(v.userId) then
  5.         table.insert(Whitelist, v.Name)
  6.     end
  7. end
  8.  
  9. game.Players.PlayerAdded:connect(function(player) --Adds friends to whitelist if they're just joining the game.
  10.     if game.Players.LocalPlayer:IsFriendsWith(player.userId) then
  11.         table.insert(Whitelist, player.Name)
  12.     end
  13. end)
  14.  
  15. function CreateChams()
  16. if Chams then
  17.     for i,v in pairs(camera:GetChildren()) do
  18.         if v.ClassName == "BoxHandleAdornment" then
  19.             v:Destroy()
  20.         end
  21.     end
  22.          for q,player in pairs(game.Players:GetPlayers()) do
  23.             if player.Character:FindFirstChild("Head") and player.Character.Head:FindFirstChild("face") then
  24.                 player.Character.Head.face:Destroy()
  25.             end
  26.             if player.Character.Head:FindFirstChild("BoxHandleAdornment") then
  27.                local ESPS = false
  28.            else
  29.                 if player.Name ~= localplayer.Name and player.Character:FindFirstChild("Head") then
  30.                 for i,v in pairs(player.Character:GetChildren()) do
  31.                     if v:IsA("BasePart") then
  32.                         if v.Name ~= "Head" then
  33.                         local fakeChams = Instance.new("BoxHandleAdornment", v)
  34.                         v.CanCollide = false
  35.                         local esp = Instance.new("BoxHandleAdornment", camera)
  36.                         esp.AlwaysOnTop = true
  37.                         esp.Adornee = v
  38.                         esp.ZIndex = 10
  39.                         esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
  40.                         for c,w in pairs(Whitelist) do
  41.                             if player.Name == w then
  42.                             esp.Color3 = Color3.new(0,0,255)
  43.                             esp.Adornee = v
  44.                             esp.ZIndex = 10
  45.                             esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
  46.                         else
  47.                             if player.TeamColor == localplayer.TeamColor then
  48.                              esp.Color3 = Color3.new(0,255,0)
  49.                              esp.Adornee = v
  50.                              esp.ZIndex = 10
  51.                              esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
  52.                          else
  53.                              if player.TeamColor ~= localplayer.TeamColor then
  54.                                     esp.Color3 = Color3.new(255,0,0)
  55.                                     esp.Adornee = v
  56.                                     esp.ZIndex = 10
  57.                                     esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
  58.                                             end
  59.                                         end
  60.                                     end
  61.                                 end  
  62.                             end
  63.                         end  
  64.                     end
  65.                 end
  66.             end
  67.         end
  68.     end
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement