Showcase Kick Gui | Roblox Serverside Script

local RemoteEvent = game.ReplicatedStorage:WaitForChild("KickEvent") local admins = "YourUsername", "AdminUser2" -- List of authorized users RemoteEvent.OnServerEvent:Connect(function(player, targetName) -- Security Check: Verify sender is an admin local isAdmin = false for _, name in pairs(admins) do if player.Name == name then isAdmin = true break end end if isAdmin then local target = game.Players:FindFirstChild(targetName) if target then target:Kick("You have been kicked by an administrator.") end else -- Optional: Kick the exploiter trying to use admin tools player:Kick("Unauthorized access to admin commands.") end end) Use code with caution. Copied to clipboard 2. Client-Side Trigger ( StarterGui )

This LocalScript inside your button sends the data to the server when clicked. Roblox Serverside Script Showcase Kick GUI

A ScreenGui in StarterGui containing a TextBox (for the player's name) and a TextButton (to execute the kick). local RemoteEvent = game