0% found this document useful (0 votes)
11K views1 page

Kick All Script

The document provides a Lua script for Roblox that creates a user interface (UI) within a ScreenGui for kicking players. It includes a draggable frame with a heading, a text box for a custom kick message, and a button labeled 'Kick All'. When the button is clicked, the local player is kicked with the message entered in the text box.

Uploaded by

lendascomcg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11K views1 page

Kick All Script

The document provides a Lua script for Roblox that creates a user interface (UI) within a ScreenGui for kicking players. It includes a draggable frame with a heading, a text box for a custom kick message, and a button labeled 'Kick All'. When the button is clicked, the local player is kicked with the message entered in the text box.

Uploaded by

lendascomcg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- Insert this code into a LocalScript within a ScreenGui

local Players = game:GetService("Players")


local LocalPlayer = [Link]

local Gui = [Link]("ScreenGui")


[Link] = "KickGui"
[Link] = LocalPlayer:WaitForChild("PlayerGui")

local Frame = [Link]("Frame")


[Link] = [Link](0, 200, 0, 120)
[Link] = [Link](0.5, -100, 0.5, -60)
Frame.BackgroundColor3 = [Link](1, 1, 1)
[Link] = 0.5
[Link] = true -- Enable user interaction on mobile
[Link] = true -- Make the frame draggable on mobile
[Link] = Gui

local Heading = [Link]("TextLabel")


[Link] = [Link](1, -20, 0, 30)
[Link] = [Link](0, 10, 0, 10)
Heading.BackgroundColor3 = [Link](1, 1, 1)
Heading.TextColor3 = [Link](0, 0, 0)
[Link] = [Link]
[Link] = 18
[Link] = "Made by Oxycontin"
[Link] = Frame

local TextBox = [Link]("TextBox")


[Link] = [Link](1, -20, 0, 30)
[Link] = [Link](0, 10, 0, 50)
TextBox.BackgroundColor3 = [Link](1, 1, 1)
TextBox.TextColor3 = [Link](0, 0, 0)
[Link] = [Link]
[Link] = 18
[Link] = "Custom Kick Message"
[Link] = Frame

local Button = [Link]("TextButton")


[Link] = [Link](1, -20, 0, 30)
[Link] = [Link](0, 10, 0, 90)
Button.BackgroundColor3 = [Link](1, 0, 0)
Button.TextColor3 = [Link](1, 1, 1)
[Link] = "Kick All"
[Link] = [Link]
[Link] = 20
[Link] = Frame

Button.MouseButton1Click:Connect(function()
local customMessage = [Link]
LocalPlayer:Kick(customMessage)
end)

You might also like