Advertisement
Upscalefanatic3

Knife Capsules ESP Script

Oct 21st, 2017
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. READ CAREFULLY!!!!!!
  2.  
  3. TODO: Find some way to figure out who is trying to kill you
  4.  
  5. This is simply an ESP for Knife Capsules. All players show up in white, and your target player is displayed in red.
  6.  
  7. J to toggle the ESP on and off
  8.  
  9. Script:
  10.  
  11.  
  12.  
  13. local Players = game:GetService'Players'
  14. local player = Players.LocalPlayer
  15. local mouse = player:GetMouse()
  16. local chams = false
  17. local chamholder = Instance.new'Model' chamholder.Parent = game.CoreGui chamholder.Name = 'Cham Holder'
  18. function GetSize(i) if i:IsA'BasePart' then return i.Size elseif i:IsA'Model' then return i:GetExtentsSize() end end
  19.  
  20. function isTarget(nm)
  21. local tgui = player.PlayerGui:FindFirstChild'TrackerBillboard'
  22. if tgui and tgui.Adornee ~= nil then
  23. if tgui.Adornee.Parent.Name == nm then
  24. return true
  25. end
  26. end
  27. return false
  28. end
  29.  
  30. --> Chams
  31. function Chams()
  32. for _, Player in next, Players:GetPlayers() do
  33. if Player ~= player and Player.Character and Player.Character:FindFirstChild'UpperTorso' then
  34. for _, Part in next, Player.Character:GetChildren() do
  35. if Part.Name ~= 'AttachedKnifeInHand' and Part:IsA'PVInstance' then
  36. local newcolor = Player.TeamColor.Color
  37. if isTarget(Player.Name) then newcolor = Color3.new(255, 0, 0) end
  38. local Box = Instance.new'BoxHandleAdornment'
  39. Box.Size = GetSize(Part) + Vector3.new(.2, .2, .2);
  40. Box.Name = 'Cham_' .. Player.Name;
  41. Box.Color3 = newcolor;
  42. Box.Adornee = Part;
  43. Box.AlwaysOnTop = true;
  44. Box.ZIndex = 5;
  45. Box.Transparency = .1;
  46. Box.Parent = chamholder;
  47. end
  48. end
  49. end
  50. end
  51. end
  52.  
  53. function ResetChams(added)
  54. if added ~= nil and not Players:FindFirstChild(added.Name) then return end
  55. chamholder:ClearAllChildren()
  56. if chams then Chams() end
  57. end
  58.  
  59. mouse.KeyDown:connect(function(key)
  60. if key:lower() == 'j' then
  61. chams = not chams
  62. ResetChams()
  63. warn('Chams: '..tostring(chams))
  64. end
  65. end)
  66.  
  67. warn('\n-------------------- \n J = Chams \n --------------------')
  68. while wait(3) do ResetChams() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement