A script in ServerScriptService that listens for the event, verifies the sender is an admin, and then kicks the target player. Core Scripting Logic
A RemoteEvent in ReplicatedStorage that acts as a bridge, allowing the client-side UI to tell the server who to kick.
A ScreenGui in StarterGui containing a TextBox (for the player's name) and a TextButton (to execute the kick). Roblox Serverside Script Showcase Kick GUI
This LocalScript inside your button sends the data to the server when clicked.
To build a functional and secure kick GUI, you need three main parts: A script in ServerScriptService that listens for the
A serverside kick GUI allows authorized users (like admins) to remove players from a game server. Because modern Roblox games use , any action intended to affect other players—like a kick—must be executed by a script in the ServerScriptService . Key Components
local button = script.Parent local textBox = script.Parent.Parent:WaitForChild("TextBox") local RemoteEvent = game.ReplicatedStorage:WaitForChild("KickEvent") button.MouseButton1Click:Connect(function() local nameToKick = textBox.Text RemoteEvent:FireServer(nameToKick) end) Use code with caution. Copied to clipboard Common Features in Showcases This LocalScript inside your button sends the data
Kick/Ban GUI issues - Scripting Support - Developer Forum | Roblox