Advertisement
YoungAoS

Kick All Script

Jun 19th, 2024
833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. -- Insert this code into a LocalScript within a ScreenGui
  2.  
  3. local Players = game:GetService("Players")
  4. local LocalPlayer = Players.LocalPlayer
  5.  
  6. local Gui = Instance.new("ScreenGui")
  7. Gui.Name = "KickGui"
  8. Gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
  9.  
  10. local Frame = Instance.new("Frame")
  11. Frame.Size = UDim2.new(0, 200, 0, 120)
  12. Frame.Position = UDim2.new(0.5, -100, 0.5, -60)
  13. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  14. Frame.BackgroundTransparency = 0.5
  15. Frame.Active = true -- Enable user interaction on mobile
  16. Frame.Draggable = true -- Make the frame draggable on mobile
  17. Frame.Parent = Gui
  18.  
  19. local Heading = Instance.new("TextLabel")
  20. Heading.Size = UDim2.new(1, -20, 0, 30)
  21. Heading.Position = UDim2.new(0, 10, 0, 10)
  22. Heading.BackgroundColor3 = Color3.new(1, 1, 1)
  23. Heading.TextColor3 = Color3.new(0, 0, 0)
  24. Heading.Font = Enum.Font.SourceSansBold
  25. Heading.TextSize = 18
  26. Heading.Text = "Made by Oxycontin"
  27. Heading.Parent = Frame
  28.  
  29. local TextBox = Instance.new("TextBox")
  30. TextBox.Size = UDim2.new(1, -20, 0, 30)
  31. TextBox.Position = UDim2.new(0, 10, 0, 50)
  32. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  33. TextBox.TextColor3 = Color3.new(0, 0, 0)
  34. TextBox.Font = Enum.Font.SourceSans
  35. TextBox.TextSize = 18
  36. TextBox.PlaceholderText = "Custom Kick Message"
  37. TextBox.Parent = Frame
  38.  
  39. local Button = Instance.new("TextButton")
  40. Button.Size = UDim2.new(1, -20, 0, 30)
  41. Button.Position = UDim2.new(0, 10, 0, 90)
  42. Button.BackgroundColor3 = Color3.new(1, 0, 0)
  43. Button.TextColor3 = Color3.new(1, 1, 1)
  44. Button.Text = "Kick All"
  45. Button.Font = Enum.Font.SourceSansBold
  46. Button.TextSize = 20
  47. Button.Parent = Frame
  48.  
  49. Button.MouseButton1Click:Connect(function()
  50. local customMessage = TextBox.Text
  51. LocalPlayer:Kick(customMessage)
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement