Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Player Whitelist(People who don't get shot at.)
- local Whitelist = {"Scapters", "Lua_Environment", "like_clockwork", "Gin_Freecs", "AimWorks"}
- for i,v in pairs(game.Players:GetChildren()) do --Adds anyone in-game who's friends with the Currenet player into the list.
- if game.Players.LocalPlayer:IsFriendsWith(v.userId) then
- table.insert(Whitelist, v.Name)
- end
- end
- game.Players.PlayerAdded:connect(function(player) --Adds friends to whitelist if they're just joining the game.
- if game.Players.LocalPlayer:IsFriendsWith(player.userId) then
- table.insert(Whitelist, player.Name)
- end
- end)
- function CreateChams()
- if Chams then
- for i,v in pairs(camera:GetChildren()) do
- if v.ClassName == "BoxHandleAdornment" then
- v:Destroy()
- end
- end
- for q,player in pairs(game.Players:GetPlayers()) do
- if player.Character:FindFirstChild("Head") and player.Character.Head:FindFirstChild("face") then
- player.Character.Head.face:Destroy()
- end
- if player.Character.Head:FindFirstChild("BoxHandleAdornment") then
- local ESPS = false
- else
- if player.Name ~= localplayer.Name and player.Character:FindFirstChild("Head") then
- for i,v in pairs(player.Character:GetChildren()) do
- if v:IsA("BasePart") then
- if v.Name ~= "Head" then
- local fakeChams = Instance.new("BoxHandleAdornment", v)
- v.CanCollide = false
- local esp = Instance.new("BoxHandleAdornment", camera)
- esp.AlwaysOnTop = true
- esp.Adornee = v
- esp.ZIndex = 10
- esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
- for c,w in pairs(Whitelist) do
- if player.Name == w then
- esp.Color3 = Color3.new(0,0,255)
- esp.Adornee = v
- esp.ZIndex = 10
- esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
- else
- if player.TeamColor == localplayer.TeamColor then
- esp.Color3 = Color3.new(0,255,0)
- esp.Adornee = v
- esp.ZIndex = 10
- esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
- else
- if player.TeamColor ~= localplayer.TeamColor then
- esp.Color3 = Color3.new(255,0,0)
- esp.Adornee = v
- esp.ZIndex = 10
- esp.Size = v.Size+Vector3.new(0.1,0.1,0.1)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement