Roblox Scripts - Fe Admin ... - Fe Ban Kick Script -
This is the real FE Ban Kick Script. It validates the admin status and executes the kick.
-- Script in ServerScriptService local replicatedStorage = game:GetService("ReplicatedStorage") local adminEvent = replicatedStorage:WaitForChild("AdminCommandEvent")-- Admin list (UserIds are safer than names) local admins = 123456789, -- Your UserId 987654321 -- Co-owner UserId
local function isAdmin(player) return table.find(admins, player.UserId) ~= nil end
adminEvent.OnServerEvent:Connect(function(player, command, targetName, reason) -- Security check: Is the sender an admin? if not isAdmin(player) then warn(player.Name .. " attempted to use admin commands without permission.") return end FE Ban Kick Script - ROBLOX SCRIPTS - FE Admin ...
if command == "Kick" then -- Find the target player local target = game.Players:FindFirstChild(targetName) if target then target:Kick(reason .. " | Kicked by: " .. player.Name) else player:Kick("Target not found in server.") -- Optional: Notify admin end elseif command == "Ban" then -- Ban logic (See Part 4) banPlayer(player, targetName, reason) end
end)
In the world of Roblox development and server administration, the ability to remove disruptive players is essential. "FE" stands for FilterEnabled, a property of RemoteEvent and RemoteFunction objects that ensures security between the client and the server. This is the real FE Ban Kick Script
While the term "FE Script" is often used in the exploiting/hacking community to describe scripts that work on games with strict filtering, in legitimate development, it refers to the secure communication required to kick players.
Place a Script inside ServerScriptService.
-- ServerScriptService/KickHandler
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
-- Create a RemoteEvent for communication
local kickRemote = Instance.new("RemoteEvent")
kickRemote.Name = "AdminKickRemote"
kickRemote.Parent = ReplicatedStorage
-- Configuration: List of Usernames who are allowed to kick
local AdminList = "YourUsernameHere", "CoOwnerUsername"
-- Function to check if a player is an Admin
local function isAdmin(player)
for _, adminName in ipairs(AdminList) do
if player.Name == adminName then
return true
end
end
return false
end
-- Listen for the client to send a kick request
kickRemote.OnServerEvent:Connect(function(senderPlayer, targetPlayerName, reason)
-- SECURITY CHECK: Is the person sending the command actually an admin?
if isAdmin(senderPlayer) then
local targetPlayer = Players:FindFirstChild(targetPlayerName)
if targetPlayer then
-- Execute the Kick
targetPlayer:Kick("You have been kicked by an admin. Reason: " .. (reason or "No reason provided."))
print(senderPlayer.Name .. " kicked " .. targetPlayerName)
else
-- Feedback to admin (optional)
warn("Player not found: " .. targetPlayerName)
end
else
-- Security Warning: Someone tried to use the command without permission
warn(senderPlayer.Name .. " attempted to use admin kick command without permission!")
-- Optional: Kick the exploiter for trying to abuse the remote
-- senderPlayer:Kick("Exploiting detected")
end
end)
This script runs on the client. It sends the command to the server. local function isAdmin(player) return table
-- LocalScript inside a TextButton (Parent: ScreenGui) local player = game.Players.LocalPlayer local replicatedStorage = game:GetService("ReplicatedStorage") local adminEvent = replicatedStorage:WaitForChild("AdminCommandEvent")local function kickPlayer(targetPlayerName, reason) if not reason or reason == "" then reason = "No reason specified." end -- Fire the server adminEvent:FireServer("Kick", targetPlayerName, reason) end
-- Example usage when button is clicked script.Parent.MouseButton1Click:Connect(function() local targetName = "ExampleExploiter123" -- Get from a text box kickPlayer(targetName, "Violation of server rules.") end)