Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- READ CAREFULLY!!!!!!
- TODO: Find some way to figure out who is trying to kill you
- This is simply an ESP for Knife Capsules. All players show up in white, and your target player is displayed in red.
- J to toggle the ESP on and off
- Script:
- local Players = game:GetService'Players'
- local player = Players.LocalPlayer
- local mouse = player:GetMouse()
- local chams = false
- local chamholder = Instance.new'Model' chamholder.Parent = game.CoreGui chamholder.Name = 'Cham Holder'
- function GetSize(i) if i:IsA'BasePart' then return i.Size elseif i:IsA'Model' then return i:GetExtentsSize() end end
- function isTarget(nm)
- local tgui = player.PlayerGui:FindFirstChild'TrackerBillboard'
- if tgui and tgui.Adornee ~= nil then
- if tgui.Adornee.Parent.Name == nm then
- return true
- end
- end
- return false
- end
- --> Chams
- function Chams()
- for _, Player in next, Players:GetPlayers() do
- if Player ~= player and Player.Character and Player.Character:FindFirstChild'UpperTorso' then
- for _, Part in next, Player.Character:GetChildren() do
- if Part.Name ~= 'AttachedKnifeInHand' and Part:IsA'PVInstance' then
- local newcolor = Player.TeamColor.Color
- if isTarget(Player.Name) then newcolor = Color3.new(255, 0, 0) end
- local Box = Instance.new'BoxHandleAdornment'
- Box.Size = GetSize(Part) + Vector3.new(.2, .2, .2);
- Box.Name = 'Cham_' .. Player.Name;
- Box.Color3 = newcolor;
- Box.Adornee = Part;
- Box.AlwaysOnTop = true;
- Box.ZIndex = 5;
- Box.Transparency = .1;
- Box.Parent = chamholder;
- end
- end
- end
- end
- end
- function ResetChams(added)
- if added ~= nil and not Players:FindFirstChild(added.Name) then return end
- chamholder:ClearAllChildren()
- if chams then Chams() end
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == 'j' then
- chams = not chams
- ResetChams()
- warn('Chams: '..tostring(chams))
- end
- end)
- warn('\n-------------------- \n J = Chams \n --------------------')
- while wait(3) do ResetChams() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement