Guest User

Kill Script

a guest
Dec 23rd, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. local lplayer = game:GetService('Players').LocalPlayer
  2.  
  3. local killing = false
  4. function GetPlayer(String)
  5. local Found = {}
  6. local strl = String:lower()
  7. if strl == 'all' then
  8. for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  9. table.insert(Found,v)
  10. end
  11. elseif strl == 'others' then
  12. for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  13. if v.Name ~= lplayer.Name then
  14. table.insert(Found,v)
  15. end
  16. end
  17. elseif strl == 'me' then
  18. for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  19. if v.Name == lplayer.Name then
  20. table.insert(Found,v)
  21. end
  22. end
  23. else
  24. for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  25. if v.Name:lower():sub(1, #String) == String:lower() then
  26. table.insert(Found,v)
  27. end
  28. end
  29. end
  30. return Found
  31. end
  32. function ahh(thing)
  33. local asd = {'kill','gui','kill gui'}
  34. local f = string.upper(asd[math.random(1,#asd)])
  35. return f
  36. end
  37. ScreenGui = Instance.new('ScreenGui')
  38. main = Instance.new('Frame')
  39. TextLabel = Instance.new('TextLabel')
  40. Player = Instance.new('TextBox')
  41. kill = Instance.new('TextButton')
  42.  
  43. ScreenGui.Parent = game.CoreGui
  44. main.Name = 'main'
  45. main.Parent = ScreenGui
  46. main.BackgroundColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  47. main.Position = UDim2.new(0.780606031, 0, 0.548271775, 0)
  48. main.Size = UDim2.new(0, 326, 0, 212)
  49. main.Active = true
  50. main.Draggable = true
  51.  
  52. TextLabel.Parent = main
  53. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  54. TextLabel.BackgroundTransparency = 1
  55. TextLabel.Size = UDim2.new(0, 326, 0, 50)
  56. TextLabel.Font = Enum.Font.SourceSansItalic
  57. TextLabel.FontSize = Enum.FontSize.Size28
  58. TextLabel.Text = 'FEKILL BY HACKMASTER12'
  59. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  60. TextLabel.TextSize = 25
  61. TextLabel.TextStrokeTransparency = 0
  62.  
  63. Player.Name = 'Player'
  64. Player.Parent = main
  65. Player.BackgroundColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  66. Player.BorderColor3 = Color3.new(0.509804, 0.509804, 0.509804)
  67. Player.BorderSizePixel = 3
  68. Player.Position = UDim2.new(0.193251535, 0, 0.316037744, 0)
  69. Player.Size = UDim2.new(0, 200, 0, 50)
  70. Player.Font = Enum.Font.SourceSans
  71. Player.FontSize = Enum.FontSize.Size14
  72. Player.Text = ''
  73. Player.TextColor3 = Color3.new(0, 0, 0)
  74. Player.TextSize = 14
  75.  
  76. kill.Name = 'kill'
  77. kill.Parent = main
  78. kill.BackgroundColor3 = Color3.new(0.52549, 0.52549, 0.52549)
  79. kill.Position = UDim2.new(0.193251535, 0, 0.613207519, 0)
  80. kill.Size = UDim2.new(0, 200, 0, 50)
  81. kill.FontSize = Enum.FontSize.Size14
  82. kill.Text = 'Kill'
  83. kill.TextColor3 = Color3.new(0, 0, 0)
  84. kill.TextSize = 14
  85. kill.MouseButton1Down:connect(function()
  86. for i,v in pairs(GetPlayer(Player.Text)) do
  87.  
  88.  
  89.  
  90. local LocalPlayer = game:GetService('Players').LocalPlayer
  91. local target = game:GetService('Players')[v.Name]
  92. local torsoname = 'Torso'
  93. if LocalPlayer.Character:FindFirstChild('Humanoid').RigType == Enum.HumanoidRigType.R15 then
  94. torsoname = 'UpperTorso'
  95. end
  96. if target.Character ~= nil then
  97. local savepos = LocalPlayer.Character:FindFirstChild('HumanoidRootPart').CFrame
  98. LocalPlayer.Character:FindFirstChild(torsoname).Anchored = true
  99. local tool = Instance.new('Tool', LocalPlayer.Backpack)
  100. local hat = LocalPlayer.Character:FindFirstChildOfClass('Accessory')
  101. local hathandle = hat.Handle
  102. hathandle.Parent = tool
  103. hathandle.Massless = true
  104. tool.GripPos = Vector3.new(0, 9e99, 0)
  105. tool.Parent = LocalPlayer.Character
  106. repeat wait() until LocalPlayer.Character:FindFirstChildOfClass('Tool') ~= nil
  107. tool.Grip = CFrame.new(Vector3.new(0, 0, 0))
  108. LocalPlayer.Character:FindFirstChild(torsoname).Anchored = false
  109. repeat
  110. LocalPlayer.Character:FindFirstChild('HumanoidRootPart').CFrame = target.Character:FindFirstChild('HumanoidRootPart').CFrame
  111. wait()
  112. until target.Character == nil or target.Character:FindFirstChild('Humanoid').Health <= 0 or LocalPlayer.Character == nil or LocalPlayer.Character:FindFirstChild('Humanoid').Health <= 0 or (target.Character:FindFirstChild('HumanoidRootPart').Velocity.magnitude - target.Character:FindFirstChild('Humanoid').WalkSpeed) > (target.Character:FindFirstChild('Humanoid').WalkSpeed + 20)
  113. LocalPlayer.Character:FindFirstChild('Humanoid'):UnequipTools()
  114. hathandle.Parent = hat
  115. hathandle.Massless = false
  116. tool:Destroy()
  117. LocalPlayer.Character:FindFirstChild('HumanoidRootPart').CFrame = savepos
  118. end
  119. end
  120. end)
Advertisement
Add Comment
Please, Sign In to add comment