Fe Kick Ban Player Gui Script - Op Roblox Work
local Remote = game.ReplicatedStorage:WaitForChild("AdminAction") local Admins = 12345678 -- Replace with your own numeric UserID Remote.OnServerEvent:Connect(function(player, targetName, actionType) -- CRITICAL: Check if the person clicking the button is an admin local isAdmin = false for _, id in pairs(Admins) do if player.UserId == id then isAdmin = true break end end if isAdmin then local target = game.Players:FindFirstChild(targetName) if target then if actionType == "Kick" then target:Kick("You have been kicked by an admin.") elseif actionType == "Ban" then -- To "Ban," use Roblox's Ban API or save their ID to a DataStore target:Kick("You are permanently banned.") end end end end) Use code with caution. Copied to clipboard
If you're sharing a script for a FE (Filtering Enabled) Kick/Ban GUI fe kick ban player gui script op roblox work
: Include a "best target" function that allows you to type only the first few letters of a username to find the correct player. Custom Messages parameter in the local Remote = game




دارای دینماد، نماد اعتماد دیجیکالا