Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. local P = game:GetService("Players")
  2. local R = game:GetService("ReplicatedStorage")
  3. local T = game:GetService("Teams")
  4. local RS = game:GetService("RunService")
  5.  
  6. local LP = P.LocalPlayer
  7. local HB = RS.Heartbeat
  8.  
  9. local function team_check(player)
  10. if player.Team == T.Alive then
  11. return true
  12. end
  13. return false
  14. end
  15.  
  16. local function M9_tool()
  17. local M9B = LP.Backpack:FindFirstChild("M9")
  18. local M9L = LP:FindFirstChild("M9")
  19. if M9L then
  20. return M9L
  21. elseif M9B then
  22. return M9B
  23. end
  24. end
  25.  
  26. local function kill_all(M9)
  27. M9.Parent = LP.Character
  28. for _,v in next,P:GetPlayers() do
  29. if v ~= LP and team_check(LP) and team_check(v) and LP.Character ~= nil and v.Character ~= nil then
  30. local ehum = v.Character:FindFirstChildOfClass("Humanoid")
  31. local hum = LP.Character:FindFirstChildOfClass("Humanoid")
  32. local humr = LP.Character:FindFirstChild("HumanoidRootPart")
  33. local M9 = LP.Character:FindFirstChild("M9")
  34. if ehum and hum and humr and M9 then
  35. for i=1,7 do
  36. R:WaitForChild("Remotes"):WaitForChild("Dont_Buy_From_Jacob"):FireServer("xHyf86e", 15, ehum, M9, v.Name, 7, {[1] = CFrame.new(humr.Position),[2] = Vector3.new(humr.Position)}, humr.CFrame, Vector3.new(0.05,0.05,55), humr.Position)
  37. end
  38. hum.Health = 0
  39. end
  40. end
  41. end
  42. wait(0.5)
  43. M9.Parent = LP
  44. end
  45.  
  46. if LP.Character ~= nil then
  47. repeat HB:wait() until LP.Backpack:FindFirstChild("M9") or LP:FindFirstChild("M9")
  48. local M9B = LP.Backpack:FindFirstChild("M9")
  49. local M9L = LP:FindFirstChild("M9")
  50. if M9L then
  51. kill_all(M9L)
  52. elseif M9B then
  53. kill_all(M9B)
  54. end
  55. end
  56.  
  57. LP.CharacterAdded:Connect(function(a)
  58. repeat HB:wait() until LP.Backpack:FindFirstChild("M9") or LP:FindFirstChild("M9")
  59. repeat HB:wait() until LP.Team == T.Alive
  60. wait(3)
  61. local M9B = LP.Backpack:FindFirstChild("M9")
  62. local M9L = LP:FindFirstChild("M9")
  63. if M9L then
  64. kill_all(M9L)
  65. elseif M9B then
  66. kill_all(M9B)
  67. end
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement