Advertisement
ToxicTheBoss

Kill Gui

Apr 13th, 2020
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1.  
  2. for index, obj in pairs(game:GetService("CoreGui"):GetChildren()) do
  3. if "PEPSIKILLGUI" == obj.Name then
  4. obj:Destroy()
  5. end
  6. end
  7. local ready, LocalPlayer, Players, gui, CreateInstance = true, game:GetService("Players").LocalPlayer, game:GetService("Players"), {}, function(cls, props, name)
  8. local inst = Instance.new(cls)
  9. for i, v in pairs(props) do
  10. inst[i] = v
  11. end
  12. if not name then
  13. inst.Name = string.rep("x", math.random(math.random(3, 20), math.random(70, 120))):gsub(".", function(...)
  14. return ("\226\128\174" .. ({"👩", "❤", "💋", "🍁", "🌔", "🚲", "♻", "👨", "👧", "👦", "🇩🇰", "👍", "👎", "\n", "\r", "̮̜ͯ͂̇\"", "_", "=", "(", ")", "[", "]", "\"", "'", "\\", "/", "{", "}", "@", "#", "$", "%", "^", "&", "*", " ", "̤", "҉", "͐", "ͧ", "͆", "̑", "ͥ", "͒", "̀", "̟", "̼", "̘", "͈", "͓", "̪", "̡", "͒", "̉", "ͨ", "̻", "̜", "̼", "̟", "͍", "̖", "̦", "̱", "̞", "͎", "̷", "ͤ", "͋", "̃", "͇", "͔", "ͤ", "̒", "̣", "̰", "̙", "̥", "̤", "͖", "̫", "̗", "́", "̚", "̾", "͊", "ͥ", "̍", "̋", "̏", "ͩ", "ͬ", "ͮ", "̆", "̩", "̈́", "̐", "͑", "̽", "̅", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "z", "x", "c", "v", "b", "n", "m", ".", ",", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "A", "S", "D", "F", "G", "H", "J", "K", "L", "Z", "X", "C", "V", "B", "N", "M", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "`", "~"})[math.random(1, 166)]) or tostring(... or string.rtl) or string.rtl
  15. end)
  16. end
  17. return inst
  18. end
  19. gui.ui = CreateInstance("Frame", {Style = Enum.FrameStyle.Custom, Active = true, AnchorPoint = Vector2.new(0, 0), BackgroundColor3 = Color3.new(0.05, 0.05, 0.05), BackgroundTransparency = 0.11500000208616, BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 3, ClipsDescendants = false, Draggable = true, Position = UDim2.new(0.5, -70, 0.5, -70), Rotation = 0, Selectable = false, Size = UDim2.new(0, 140, 0, 70), SizeConstraint = Enum.SizeConstraint.RelativeXY, Visible = true, ZIndex = 1, Name = "ui", Parent = CreateInstance("ScreenGui", {DisplayOrder = 0, Enabled = true, ResetOnSpawn = true, Name = "PEPSIKILLGUI", Parent = game:GetService("CoreGui")}, true)})
  20. gui.Username = CreateInstance("TextBox", {ClearTextOnFocus = true, Font = Enum.Font.SourceSans, FontSize = Enum.FontSize.Size8, MultiLine = false, Text = "", TextColor3 = Color3.new(0, 0, 0), PlaceholderText = "Name", PlaceholderColor3 = Color3.new(0.7, 0.7, 0.7), TextScaled = true, TextSize = 5, TextStrokeColor3 = Color3.new(0, 0, 0), TextStrokeTransparency = 1, TextTransparency = 0, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Center, TextYAlignment = Enum.TextYAlignment.Center, Active = true, AnchorPoint = Vector2.new(0, 0), BackgroundColor3 = Color3.new(0.115, 0.115, 0.115), BackgroundTransparency = 0, BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843), BorderSizePixel = 0, ClipsDescendants = false, Draggable = false, Position = UDim2.new(0.100000001, 0, 0.25, 0), Rotation = 0, Selectable = true, Size = UDim2.new(0.800000012, 0, 0, 25), SizeConstraint = Enum.SizeConstraint.RelativeXY, Visible = true, ZIndex = 1, Name = "Username", Parent = gui.ui})
  21. CreateInstance("TextButton", {Font = Enum.Font.Gotham, FontSize = Enum.FontSize.Size8, Text = "Kill", TextColor3 = Color3.new(0, 0, 0), TextScaled = true, TextSize = 5, TextStrokeColor3 = Color3.new(0, 0, 0), TextStrokeTransparency = 1, TextTransparency = 0, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Center, TextYAlignment = Enum.TextYAlignment.Center, AutoButtonColor = true, Modal = false, Selected = false, Style = Enum.ButtonStyle.Custom, Active = true, AnchorPoint = Vector2.new(0, 0), BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.75, BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843), BorderSizePixel = 2, ClipsDescendants = false, Draggable = false, Position = UDim2.new(0.379999995, 0, 0.574999988, 7), Rotation = 0, Selectable = true, Size = UDim2.new(0.25, 0, 0, 15), SizeConstraint = Enum.SizeConstraint.RelativeXY, Visible = true, ZIndex = 1, Name = "Kill", Parent = gui.ui}).MouseButton1Click:Connect(function()
  22. local Target = (function(String)
  23. String = (String or gui.Username.Text):match("^%s*(.-)%s*$")
  24. for _, _Player in pairs(Players:GetPlayers()) do
  25. if _Player.Name:lower():match('^' .. String:lower()) then
  26. if _Player ~= LocalPlayer then
  27. return _Player
  28. end
  29. end
  30. end
  31. local p
  32. repeat
  33. p = Players:GetPlayers()[math.random(1, #Players:GetPlayers())]
  34. until p ~= LocalPlayer
  35. return p
  36. end)(gui.Username.Text)
  37. if Target and Target.Character and ready then
  38. pcall(function()
  39. ready = false
  40. local Character = LocalPlayer.Character or (function()
  41. LocalPlayer.CharacterAdded:wait()
  42. return LocalPlayer.Character
  43. end)()
  44. local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
  45. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  46. Torso.Anchored = true
  47. local tool = Instance.new("Tool", LocalPlayer.Backpack)
  48. local hat = LocalPlayer.Character:FindFirstChildOfClass("Accessory")
  49. local hathandle = hat.Handle
  50. hathandle.Parent = tool
  51. hathandle.Massless = true
  52. tool.GripPos = Vector3.new(0, 9e99, 0)
  53. tool.Parent = LocalPlayer.Character
  54. repeat
  55. wait()
  56. until LocalPlayer.Character:FindFirstChildOfClass("Tool") ~= nil
  57. tool.Grip = CFrame.new(Vector3.new(0, 0, 0))
  58. Torso.Anchored = false
  59. pcall(function()
  60. repeat
  61. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = Target.Character:FindFirstChild("HumanoidRootPart").CFrame
  62. game:GetService("RunService").RenderStepped:wait()
  63. 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)
  64. end)
  65. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  66. hathandle.Parent = hat
  67. hathandle.Massless = false
  68. tool:Destroy()
  69. pcall(function()
  70. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  71. end)
  72. Torso.Anchored = false
  73. end)
  74. ready = true
  75. end
  76. end)
  77. LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  78. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  79. if k:lower() == "p" then
  80. gui.ui.Visible = not gui.ui.Visible
  81. end
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement