SHARE
TWEET

Untitled

Vzurxy Jun 6th, 2019 (edited) 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Prefix = "g/kill "
  2. Name = "boomboomsha"
  3. local Player = game:GetService("Players")[Name]
  4.  
  5. function GetPlayer(String)
  6.     local Found = {}
  7.     local StringLowered = String:lower()
  8.     if StringLowered == "all" then
  9.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  10.             table.insert(Found, v)
  11.         end
  12.     elseif StringLowered == "others" then
  13.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  14.             if v.Name ~= Player.Name then
  15.                 table.insert(Found, v)
  16.             end
  17.         end
  18.     else
  19.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  20.             if v.Name:lower():sub(1, #String) == String:lower() then
  21.                 table.insert(Found, v)
  22.             end
  23.         end
  24.     end
  25.     return Found
  26. end
  27.  
  28. Player.Chatted:Connect(function(msg)
  29. if msg:sub(1, 7) == "g/kill " then
  30. for i,v in pairs(GetPlayer(tostring(msg:sub(8)))) do
  31. target = v
  32. end
  33. Instance.new("Explosion", target.Character:FindFirstChild("Head"))
  34. local oof = target.Character:FindFirstChild("UpperTorso") or target.Character:FindFirstChild("Torso")
  35. oof.Name = "69"
  36. target.Character:FindFirstChildWhichIsA("Humanoid").Health = target.Character:FindFirstChildWhichIsA("Humanoid").Health - target.Character:FindFirstChildWhichIsA("Humanoid").MaxHealth
  37. local bodyforce = Instance.new("BodyForce", target.Character:FindFirstChild("HumanoidRootPart"))
  38. bodyforce.Force = Vector3.new(9e99, 9e99, 9e99)
  39. spawn(function()
  40. for i = 1,25 do
  41. target.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(0, -9e99, 0)
  42. end
  43. end)
  44. target.Character:FindFirstChild("Head"):Destroy()
  45. target.Character:FindFirstChild("Humanoid").PlatformStand = true
  46. target.Character:FindFirstChild("Humanoid").Parent = workspace.Camera
  47. for i,v in pairs(target.Character:GetChildren()) do
  48. if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("BasePart") then
  49. v.Size = Vector3.new(9e99, 9e99, 9e99)
  50. end
  51. end
  52. target.Character:BreakJoints()
  53. end
  54. end)
  55.  
  56. Player.CharacterAdded:Connect(function()
  57. wait(1/60)
  58. local Prefix = "g/kill "
  59. local Player = game:GetService("Players")[Name]
  60.  
  61. function GetPlayer(String)
  62.     local Found = {}
  63.     local StringLowered = String:lower()
  64.     if StringLowered == "all" then
  65.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  66.             table.insert(Found, v)
  67.         end
  68.     elseif StringLowered == "others" then
  69.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  70.             if v.Name ~= Player.Name then
  71.                 table.insert(Found, v)
  72.             end
  73.         end
  74.     else
  75.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  76.             if v.Name:lower():sub(1, #String) == String:lower() then
  77.                 table.insert(Found, v)
  78.             end
  79.         end
  80.     end
  81.     return Found
  82. end
  83.  
  84. Player.Chatted:Connect(function(msg)
  85. if msg:sub(1, 7) == "g/kill " then
  86. for i,v in pairs(GetPlayer(tostring(msg:sub(8)))) do
  87. target = v
  88. end
  89. Instance.new("Explosion", target.Character:FindFirstChild("Head"))
  90. local oof = target.Character:FindFirstChild("UpperTorso") or target.Character:FindFirstChild("Torso")
  91. oof.Name = "69"
  92. target.Character:FindFirstChildWhichIsA("Humanoid").Health = target.Character:FindFirstChildWhichIsA("Humanoid").Health - target.Character:FindFirstChildWhichIsA("Humanoid").MaxHealth
  93. local bodyforce = Instance.new("BodyForce", target.Character:FindFirstChild("HumanoidRootPart"))
  94. bodyforce.Force = Vector3.new(math.huge, math.huge, math.huge)
  95. spawn(function()
  96. for i = 1,25 do
  97. target.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(0, -99e9999, 0)
  98. end
  99. end)
  100. target.Character:FindFirstChild("Head"):Destroy()
  101. target.Character:FindFirstChild("Humanoid").PlatformStand = true
  102. target.Character:FindFirstChild("Humanoid").Parent = workspace.Camera
  103. for i,v in pairs(target.Character:GetDescendants()) do
  104. if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("BasePart") then
  105. v.Size = Vector3.new(math.huge, math.huge, math.huge)
  106. end
  107. end
  108. target.Character:BreakJoints()
  109. end
  110. end)
  111. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top