local ReplicatedStorage = game:GetService("ReplicatedStorage") local RemoteEvent = ReplicatedStorage:WaitForChild("KickPlayerEvent") local targetTextBox = script.Parent.Parent:WaitForChild("TargetName") script.Parent.MouseButton1Click:Connect(function() local name = targetTextBox.Text RemoteEvent:FireServer(name) -- Sends the name to the server end) Use code with caution. Copied to clipboard 4. The Server Script (Execution & Security)
: Use string.lower() on both the input and the player names to ensure it works regardless of capitalization. Roblox Serverside Script Showcase KICK GUI [UPD...
: Add a second TextBox for a custom kick reason, then pass it through FireServer(name, reason) . : Add a second TextBox for a custom
For a visual walkthrough on setting up the UI and connecting the remote events, check out these guides: HOW TO MAKE A KICK MENU - ROBLOX STUDIO YouTube• May 1, 2024 Advanced Features to Consider then pass it through FireServer(name
: Instead of a TextBox, use a ScrollingFrame that automatically populates with buttons for every player currently in the server. Kick GUI not working - Scripting Support - Developer Forum