Since your GUI runs on the player's client but the actual "kicking" must happen on the server, you must use a RemoteEvent for secure communication. RemoteEvent ReplicatedStorage and name it "ModAction".
If you didn't write the code yourself, always mention the original to avoid getting your post reported or flamed. write the Lua code fe kick ban player gui script op roblox work
A FE kick/ban player system is a tool that allows game administrators to remove or restrict players from the game due to misconduct or other reasons. The "FE" stands for Front-End, which refers to the user interface and experience that players interact with. In this case, the FE kick/ban player system will have a graphical user interface (GUI) that allows administrators to easily manage player behavior. Since your GUI runs on the player's client
-- Services local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") write the Lua code A FE kick/ban player