kick yourself with your own text Gui
Key RequiredUniversal

kick yourself with your own text Gui

Universal ScriptFebypasserrobloxFebypasserroblox 3.6K views 74 executesUpdated Dec 29, 2024
0.0/ 5(1 votes)
010% Positive
Lua Script•46 lines (1508 chars)
-- Create the ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

-- Create a Frame for the GUI
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0.3, 0, 0.3, 0)
frame.Position = UDim2.new(0.35, 0, 0.35, 0)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.Parent = screenGui

-- Create a TextBox for the reason
local reasonBox = Instance.new("TextBox")
reasonBox.Size = UDim2.new(1, 0, 0.5, 0)
reasonBox.Position = UDim2.new(0, 0, 0, 0)
reasonBox.PlaceholderText = "Enter your kick reason here..."
reasonBox.Parent = frame

-- Create a Button to kick the player
local kickButton = Instance.new("TextButton")
kickButton.Size = UDim2.new(1, 0, 0.5, 0)
kickButton.Position = UDim2.new(0, 0, 0.5, 0)
kickButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
kickButton.Text = "Kick"
kickButton.Parent = frame

-- Function to kick the player
local function kickPlayer()
    local reason = reasonBox.Text
    game.Players.LocalPlayer:Kick(reason)
end

-- Connect the button to the kick function
kickButton.MouseButton1Click:Connect(kickPlayer)

-- Toggle GUI visibility
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0.1, 0, 0.05, 0)
toggleButton.Position = UDim2.new(0.9, 0, 0, 0)
toggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
toggleButton.Text = "Toggle"
toggleButton.Parent = screenGui

toggleButton.MouseButton1Click:Connect(function()
    frame.Visible = not frame.Visible
end)

Features & Information

Basically it creates a gui that has a textbox and u type whatever in it then press ban and it kicks u with that message not from the game forever just from the game

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts