Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. Code:
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local ui = Instance.new("Frame")
  4. local title = Instance.new("TextLabel")
  5. local Frame = Instance.new("Frame")
  6. local Username = Instance.new("TextBox")
  7. local Kill = Instance.new("TextButton")
  8. local cred = Instance.new("TextLabel")
  9. --Properties:
  10. ScreenGui.Parent = game:GetService("CoreGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. ui.Name = "ui"
  14. ui.Parent = ScreenGui
  15. ui.Active = true
  16. ui.BackgroundColor3 = Color3.new(1, 1, 1)
  17. ui.BackgroundTransparency = 0.20000000298023
  18. ui.BorderSizePixel = 3
  19. ui.Position = UDim2.new(0.254972845, 0, 0.419703096, 0)
  20. ui.Size = UDim2.new(0, 535, 0, 283)
  21.  
  22. title.Name = "title"
  23. title.Parent = ui
  24. title.BackgroundColor3 = Color3.new(1, 1, 1)
  25. title.BackgroundTransparency = 1
  26. title.BorderSizePixel = 2
  27. title.Position = UDim2.new(0, 0, 0.0199999996, 0)
  28. title.Size = UDim2.new(1, 0, 0, 50)
  29. title.Font = Enum.Font.SourceSans
  30. title.Text = "FE KILL"
  31. title.TextColor3 = Color3.new(0, 0, 0)
  32. title.TextScaled = true
  33. title.TextSize = 14
  34. title.TextWrapped = true
  35.  
  36. Frame.Parent = title
  37. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  38. Frame.BorderSizePixel = 0
  39. Frame.Position = UDim2.new(0.25, 0, 0.860000014, 0)
  40. Frame.Size = UDim2.new(0.5, 0, 0, 3)
  41.  
  42. Username.Name = "Username"
  43. Username.Parent = ui
  44. Username.BackgroundColor3 = Color3.new(1, 1, 1)
  45. Username.BorderSizePixel = 0
  46. Username.Position = UDim2.new(0.100000001, 0, 0.300000012, 0)
  47. Username.Size = UDim2.new(0.800000012, 0, 0, 50)
  48. Username.Font = Enum.Font.SourceSans
  49. Username.PlaceholderText = "Name"
  50. Username.Text = ""
  51. Username.TextColor3 = Color3.new(0, 0, 0)
  52. Username.TextScaled = true
  53. Username.TextSize = 14
  54. Username.TextWrapped = true
  55.  
  56. Kill.Name = "Kill"
  57. Kill.Parent = ui
  58. Kill.BackgroundColor3 = Color3.new(1, 1, 1)
  59. Kill.BackgroundTransparency = 0.20000000298023
  60. Kill.BorderSizePixel = 2
  61. Kill.Position = UDim2.new(0.25, 0, 0.529999971, 0)
  62. Kill.Size = UDim2.new(0.5, 0, 0, 50)
  63. Kill.Font = Enum.Font.Gotham
  64. Kill.Text = "KILL"
  65. Kill.TextColor3 = Color3.new(0, 0, 0)
  66. Kill.TextScaled = true
  67. Kill.TextSize = 14
  68. Kill.TextWrapped = true
  69.  
  70. cred.Name = "cred"
  71. cred.Parent = ui
  72. cred.BackgroundColor3 = Color3.new(1, 1, 1)
  73. cred.BackgroundTransparency = 1
  74. cred.BorderSizePixel = 2
  75. cred.Position = UDim2.new(0.0500000007, 0, 0.769999981, 0)
  76. cred.Size = UDim2.new(0.899999976, 0, 0, 50)
  77. cred.Font = Enum.Font.SourceSans
  78. cred.Text = "Credits to Cyclically, Thunder Mods"
  79. cred.TextColor3 = Color3.new(0, 0, 0)
  80. cred.TextScaled = true
  81. cred.TextSize = 14
  82. cred.TextWrapped = true
  83. ui.Draggable = true
  84.  
  85. -- creds to Hamiii for the plr finder
  86. local Players = game:GetService("Players")
  87. local LocalPlayer = Players.LocalPlayer
  88. local function RemoveSpaces(String)
  89. return String:gsub("%s+", "") or String
  90. end
  91.  
  92. local function FindPlayer(String)
  93. String = RemoveSpaces(String)
  94. for _, _Player in pairs(Players:GetPlayers()) do
  95. if _Player.Name:lower():match('^'.. String:lower()) then
  96. return _Player
  97. end
  98. end
  99. return nil
  100. end
  101.  
  102. Kill.MouseButton1Click:Connect(function()
  103. local Target = FindPlayer(Username.Text)
  104. if Target and Target.Character then
  105. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  106. local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
  107.  
  108. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  109. Torso.Anchored = true
  110. local tool = Instance.new("Tool", LocalPlayer.Backpack)
  111. local hat = LocalPlayer.Character:FindFirstChildOfClass("Accessory")
  112. local hathandle = hat.Handle
  113. hathandle.Parent = tool
  114. hathandle.Massless = true
  115. tool.GripPos = Vector3.new(0, 9e99, 0)
  116. tool.Parent = LocalPlayer.Character
  117. repeat wait() until LocalPlayer.Character:FindFirstChildOfClass("Tool") ~= nil
  118. tool.Grip = CFrame.new(Vector3.new(0, 0, 0))
  119. Torso.Anchored = false
  120. repeat LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = Target.Character:FindFirstChild("HumanoidRootPart").CFrame wait()
  121. 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)
  122. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  123. hathandle.Parent = hat
  124. hathandle.Massless = false
  125. tool:Destroy()
  126. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  127. else
  128. warn'no player found named like that or he has no char'
  129. end
  130. end)
  131. You can type name in or without name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement