Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local ui = Instance.new("Frame")
  3. local title = Instance.new("TextLabel")
  4. local Frame = Instance.new("Frame")
  5. local Username = Instance.new("TextBox")
  6. local Kill = Instance.new("TextButton")
  7. local cred = Instance.new("TextLabel")
  8. --Properties:
  9. ScreenGui.Parent = game:GetService("CoreGui")
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. ui.Name = "ui"
  13. ui.Parent = ScreenGui
  14. ui.Active = true
  15. ui.BackgroundColor3 = Color3.new(0, 0, 0)
  16. ui.BackgroundTransparency = 0
  17. ui.BorderSizePixel = 0
  18. ui.Position = UDim2.new(0.5, 0, 0, 50)
  19. ui.Size = UDim2.new(0, 100, 0, 57.5)
  20.  
  21. Frame.Parent = title
  22. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  23. Frame.BorderSizePixel = 0
  24. Frame.Position = UDim2.new(0.5, 0, 0, 10)
  25. Frame.Size = UDim2.new(0.5, 0, 0, 3)
  26.  
  27. Username.Name = "Username"
  28. Username.Parent = ui
  29. Username.BackgroundColor3 = Color3.new(0.115, 0.115, 0.115)
  30. Username.BorderSizePixel = 0
  31. Username.Position = UDim2.new(0.100000001, 0, 0.25, 0)
  32. Username.Size = UDim2.new(0.800000012, 0, 0, 25)
  33. Username.Font = Enum.Font.SourceSans
  34. Username.PlaceholderText = "Name"
  35. Username.PlaceholderColor3 = Color3.new(0.5, 0.5, 0.5)
  36. Username.Text = ""
  37. Username.TextColor3 = Color3.new(0, 0, 0)
  38. Username.TextScaled = true
  39. Username.TextSize = 5
  40. Username.TextWrapped = true
  41.  
  42. Kill.Name = "Kill"
  43. Kill.Parent = ui
  44. Kill.BackgroundColor3 = Color3.new(1, 1, 1)
  45. Kill.BackgroundTransparency = 0.75
  46. Kill.BorderSizePixel = 2
  47. Kill.Position = UDim2.new(0.38, 0, 0.575, 9)
  48. Kill.Size = UDim2.new(0.25, 0, 0, 10)
  49. Kill.Font = Enum.Font.Gotham
  50. Kill.Text = "Kill"
  51. Kill.TextColor3 = Color3.new(0, 0, 0)
  52. Kill.TextScaled = true
  53. Kill.TextSize = 5
  54. Kill.TextWrapped = true
  55. ui.Draggable = true
  56.  
  57. local Players = game:GetService("Players")
  58. local LocalPlayer = Players.LocalPlayer
  59. local function RemoveSpaces(String)
  60. return String:gsub("%s+", "") or String
  61. end
  62.  
  63. local function FindPlayer(String)
  64. String = RemoveSpaces(String)
  65. for _, _Player in pairs(Players:GetPlayers()) do
  66. if _Player.Name:lower():match('^'.. String:lower()) then
  67. return _Player
  68. end
  69. end
  70. return nil
  71. end
  72.  
  73. Kill.MouseButton1Click:Connect(function()
  74. local Target = FindPlayer(Username.Text)
  75. if Target and Target.Character then
  76. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  77. local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
  78.  
  79. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  80. Torso.Anchored = true
  81. local tool = Instance.new("Tool", LocalPlayer.Backpack)
  82. local hat = LocalPlayer.Character:FindFirstChildOfClass("Accessory")
  83. local hathandle = hat.Handle
  84. hathandle.Parent = tool
  85. hathandle.Massless = true
  86. tool.GripPos = Vector3.new(0, 9e99, 0)
  87. tool.Parent = LocalPlayer.Character
  88. repeat wait() until LocalPlayer.Character:FindFirstChildOfClass("Tool") ~= nil
  89. tool.Grip = CFrame.new(Vector3.new(0, 0, 0))
  90. Torso.Anchored = false
  91. repeat LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = Target.Character:FindFirstChild("HumanoidRootPart").CFrame wait()
  92. 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)
  93. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  94. hathandle.Parent = hat
  95. hathandle.Massless = false
  96. tool:Destroy()
  97. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  98. else
  99. warn'no player found named like that or he has no char'
  100. end
  101. end)
  102. game:GetService("StarterGui"):SetCore("SendNotification", {
  103. Title = "It Loaded Nigga!";
  104. Text = "Subscribe To PewDiePie";
  105. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement