Fe Ban: Kick Script Roblox Scripts [patched]

Some scripts may attempt to steal your .ROBLOSECURITY cookie.

local RemoteEvent = game.ReplicatedStorage:WaitForChild("AdminCommand") local Bans = {} -- Temporary table for bans (Reset when server restarts) RemoteEvent.OnServerEvent:Connect(function(player, targetName, action) -- IMPORTANT: Add admin check here! -- If not player.UserId == YOUR_ID then return end local target = game.Players:FindFirstChild(targetName) if target then if action == "Kick" then target:Kick("You have been kicked by an admin.") elseif action == "Ban" then table.insert(Bans, target.UserId) target:Kick("You have been permanently banned from this server.") end end end) -- Check if a joining player is banned game.Players.PlayerAdded:Connect(function(player) for _, bannedId in pairs(Bans) do if player.UserId == bannedId then player:Kick("You are banned from this server.") end end end) Use code with caution. Copied to clipboard 3. How to Use It (The Client) fe ban kick script roblox scripts