Guest User

Untitled

a guest
Jan 9th, 2020
7,753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. function CreateESPPart(BodyPart,color)
  2.  
  3. local ESPPartparent = BodyPart
  4. local Box = Instance.new("BoxHandleAdornment")
  5. Box.Size = BodyPart.Size + Vector3.new(0.1, 0.1, 0.1)
  6. Box.Name = "ESPPart"
  7. Box.Adornee = ESPPartparent
  8. Box.Color3 = color
  9. Box.AlwaysOnTop = true
  10. Box.ZIndex = 5
  11. Box.Parent = BodyPart
  12. end
  13.  
  14. while wait(0.1) do
  15. for i,v in pairs(game.Players:GetChildren()) do
  16. if v.Character ~= nil then
  17. if v.Character:FindFirstChild("Head") then
  18. if v.Character.Head:FindFirstChild("ESPPart") then
  19. v.Character.Head.ESPPart:Destroy()
  20. end
  21. end
  22. end
  23. end
  24. for i,v in pairs(game.Workspace.Debris:GetChildren()) do
  25. if v.Name == "Revolver" then
  26. if v.Handle.Handle:FindFirstChild("ESPPart") then
  27. v.Handle.Handle.ESPPart:Destroy()
  28. end
  29. end
  30. end
  31. for i,v in pairs(game.Workspace.Debris.Props:GetChildren()) do
  32. if v:FindFirstChild("ESPPart") then
  33. v.ESPPart:Destroy()
  34. end
  35. end
  36. for i,v in pairs(game.Workspace.Debris:GetChildren()) do
  37. if v.Name == "Revolver" then
  38. CreateESPPart(v.Handle.Handle, Color3.fromRGB(255,255,255))
  39. end
  40. end
  41. for i,v in pairs(game.Workspace.Debris.Props:GetChildren()) do
  42. if v:FindFirstChild("Green") then
  43. if v.Green.Value == true then
  44. CreateESPPart(v, Color3.fromRGB(255,0,255))
  45. end
  46. end
  47. end
  48. for i,v in pairs(game.Players:GetDescendants()) do
  49. if v.Name == "Role" then
  50. if tostring(v.Value) == "Murderer" then
  51. Enemy = v.Parent.Parent.Name
  52. if game.Players[Enemy].Character ~= nil then
  53. if game.Players[Enemy].Character:FindFirstChild("Head") then
  54. CreateESPPart(game.Players[Enemy].Character.Head, Color3.fromRGB(255,0,0))
  55. end
  56. end
  57. end
  58. end
  59. end
  60. for i,v in pairs(game.Players:GetDescendants()) do
  61. if v.Name == "HasRevolver" then
  62. if v.Value == true then
  63. Gunner = v.Parent.Parent.Name
  64. if game.Players[Gunner].Character ~= nil then
  65. if game.Players[Gunner].Character:FindFirstChild("Head") then
  66. CreateESPPart(game.Players[Gunner].Character.Head, Color3.fromRGB(0,0,255))
  67. end
  68. end
  69. end
  70. end
  71. end
  72. for i,v in pairs(game.Players:GetDescendants()) do
  73. if v.Name == "Role" then
  74. if tostring(v.Value) == "Bystander" then
  75. if v.Parent.HasRevolver.Value == false then
  76. Friend = v.Parent.Parent.Name
  77. if game.Players[Friend].Character ~= nil then
  78. if game.Players[Friend].Character:FindFirstChild("Head") then
  79. CreateESPPart(game.Players[Friend].Character.Head, Color3.fromRGB(0,255,0))
  80. end
  81. end
  82. end
  83. end
  84. end
  85. end
  86. if game.Players.LocalPlayer.Character ~= nil then
  87. if game.Players.LocalPlayer.Character:FindFirstChild("Head") then
  88. if game.Players.LocalPlayer.Character.Head:FindFirstChild("ESPPart") then
  89. game.Players.LocalPlayer.Character.Head.ESPPart:Destroy()
  90. end
  91. end
  92. end
  93. end
Advertisement
Add Comment
Please, Sign In to add comment