LeviTheOtaku

Murder ESP

Mar 2nd, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. local murderweapon = "Knife"
  2. local sheriffweapon = "Revolver"
  3.  
  4. if game.PlaceId == 177052655 then -- renamer for twisted murderer
  5. sheriffweapon = "Gun"
  6. end
  7.  
  8.  
  9. workspace.ChildAdded:connect(function(child)
  10. if child.Name == "GunDrop" then
  11. local cb = Instance.new("BindableFunction")
  12. cb.OnInvoke = function(arg)
  13. if arg == "Get gun!" then
  14. workspace.GunDrop.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.CFrame.X, game.Players.LocalPlayer.Character.Head.CFrame.Y, game.Players.LocalPlayer.Character.Head.CFrame.Z)
  15. end
  16. end
  17. game:GetService("StarterGui"):SetCore("SendNotification",{
  18. Title = "The sheriff has died!",
  19. Text = "Grab their gun?",
  20. Duration = 5,
  21. Button1 = "Dismiss",
  22. Button2 = "Get gun!",
  23. Callback = cb
  24. })
  25. end
  26. end)
  27.  
  28.  
  29. function CreateESPPart(BodyPart,r,g,b)
  30. local ESPPartparent = BodyPart
  31. local Box = Instance.new("BoxHandleAdornment")
  32. Box.Size = BodyPart.Size + Vector3.new(0.1, 0.1, 0.1)
  33. Box.Name = "ESPPart"
  34. Box.Adornee = ESPPartparent
  35. Box.Color3 = Color3.fromRGB(r,g,b)
  36. Box.AlwaysOnTop = true
  37. Box.ZIndex = 5
  38. Box.Transparency = 0.8
  39. Box.Parent = BodyPart
  40. end
  41.  
  42.  
  43. function loadCheck(plr,chr)
  44. if chr:findFirstChild("Humanoid") then
  45. local part = chr:getChildren()
  46. for i=1,#part do
  47. if part[i].ClassName == "Part" then
  48. CreateESPPart(part[i], 0,255,0)
  49. spawn(function()
  50. while true do
  51. wait(0.1)
  52. if chr:findFirstChild(murderweapon) or plr.Backpack:findFirstChild(murderweapon) then
  53. if part[i]:findFirstChild("ESPPart") then
  54. part[i].ESPPart:remove()
  55. end
  56.  
  57. CreateESPPart(part[i], 255,0,0)
  58. end
  59. if chr:findFirstChild(sheriffweapon) or plr.Backpack:findFirstChild(sheriffweapon) then
  60. if part[i]:findFirstChild("ESPPart") then
  61. part[i].ESPPart:remove()
  62. end
  63.  
  64. CreateESPPart(part[i], 0,0,255)
  65. end
  66. end
  67. end)
  68. end
  69. end
  70. end
  71. end
  72.  
  73.  
  74.  
  75. local player = game.Players:GetChildren()
  76. for i=1,#player do
  77. if player[i].Name == game.Players.LocalPlayer.Name then
  78. else
  79. player[i].CharacterAdded:Connect(function(character)
  80. wait(0.5)
  81. loadCheck(player[i],player[i].Character)
  82. end)
  83.  
  84. loadCheck(player[i],player[i].Character)
  85.  
  86. end
  87. end
  88.  
  89. game.Players.PlayerAdded:Connect(function(player)
  90. player.CharacterAdded:Connect(function(character)
  91. wait(0.5)
  92. loadCheck(player,character)
  93. end)
  94. end)
Add Comment
Please, Sign In to add comment