KengTheBoby

KILL PLAYER

Sep 6th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. --[[
  2. thank you for using this script MADE BY: KENG VANG
  3. ]]
  4.  
  5. local ScreenGui = Instance.new("ScreenGui")
  6. local Frame = Instance.new("Frame")
  7. local X = Instance.new("TextButton")
  8. local Username = Instance.new("TextBox")
  9. local Details = Instance.new("TextLabel")
  10. local Kill = Instance.new("TextLabel")
  11.  
  12. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13. ScreenGui.ResetOnSpawn = false
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.new(0.333333, 0.345098, 1)
  17. Frame.BorderSizePixel = 0
  18. Frame.Position = UDim2.new(0, 0, 0.38574937, 0)
  19. Frame.Size = UDim2.new(0, 296, 0, 112)
  20. Frame.Active = true
  21. Frame.Draggable = true
  22.  
  23. X.Name = "X"
  24. X.Parent = Frame
  25. X.BackgroundColor3 = Color3.new(0.25098, 0.266667, 0.756863)
  26. X.BorderColor3 = Color3.new(0.25098, 0.266667, 0.756863)
  27. X.Position = UDim2.new(0.92567569, 0, 0, 0)
  28. X.Size = UDim2.new(0, 22, 0, 18)
  29. X.Font = Enum.Font.SourceSans
  30. X.Text = "X"
  31. X.TextColor3 = Color3.new(0, 0, 0)
  32. X.TextSize = 14
  33.  
  34. Username.Name = "Username"
  35. Username.Parent = Frame
  36. Username.BackgroundColor3 = Color3.new(0.25098, 0.266667, 0.756863)
  37. Username.BorderColor3 = Color3.new(0.25098, 0.266667, 0.756863)
  38. Username.Position = UDim2.new(0.16216217, 0, 0.0656966493, 0)
  39. Username.Size = UDim2.new(0, 200, 0, 50)
  40. Username.Font = Enum.Font.SourceSans
  41. Username.PlaceholderColor3 = Color3.new(1, 1, 1)
  42. Username.PlaceholderText = "Username"
  43. Username.Text = ""
  44. Username.TextColor3 = Color3.new(1, 1, 1)
  45. Username.TextScaled = true
  46. Username.TextSize = 14
  47. Username.TextWrapped = true
  48.  
  49. Details.Name = "Details"
  50. Details.Parent = Frame
  51. Details.BackgroundColor3 = Color3.new(1, 1, 1)
  52. Details.BackgroundTransparency = 1
  53. Details.Position = UDim2.new(0.162162155, 0, 0.678571403, 0)
  54. Details.Size = UDim2.new(0, 200, 0, 36)
  55. Details.Font = Enum.Font.Fantasy
  56. Details.Text = "Made By: Keng Vang"
  57. Details.TextColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  58. Details.TextSize = 14
  59. Details.TextWrapped = true
  60.  
  61. Kill.Name = "Kill"
  62. Kill.Parent = Frame
  63. Kill.BackgroundColor3 = Color3.new(1, 1, 1)
  64. Kill.BackgroundTransparency = 1
  65. Kill.Position = UDim2.new(0.162162155, 0, 0.508928537, 0)
  66. Kill.Size = UDim2.new(0, 200, 0, 24)
  67. Kill.Font = Enum.Font.SourceSans
  68. Kill.Text = "Press E to kill"
  69. Kill.TextColor3 = Color3.new(1, 1, 1)
  70. Kill.TextScaled = true
  71. Kill.TextSize = 14
  72. Kill.TextWrapped = true
  73.  
  74. --SCRIPTS
  75.  
  76. local Players = game:GetService("Players")
  77.  
  78. local function RemoveSpaces(String)
  79. return String:gsub("%s+", "") or String
  80. end
  81.  
  82. local function FindPlayer(String)
  83. String = RemoveSpaces(String)
  84. for _, _Player in pairs(Players:GetPlayers()) do
  85. if _Player.Name:lower():match('^'.. String:lower()) then
  86. return _Player
  87. end
  88. end
  89. return nil
  90. end
  91.  
  92. local plr = game.Players.LocalPlayer
  93. local char = plr.Character
  94.  
  95. local player = game.Players.LocalPlayer
  96. local mouse = player:GetMouse()
  97.  
  98. mouse.KeyDown:connect(function(key)
  99. if key == "e" then
  100. local target = FindPlayer(Username.Text)
  101. target.Character.Torso.Position = char["Right Arm"].Position
  102. end
  103. end)
  104.  
  105. X.MouseButton1Click:Connect(function()
  106. ScreenGui:Destroy()
  107. end)
  108.  
  109.  
Advertisement
Add Comment
Please, Sign In to add comment