-- load bans into memory at server start (if small) local function loadBans() local success, data = pcall(function() return banStore:GetAsync("global") end) if success and type(data) == "table" then cachedBans = data end end

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

Please enable Jabascript / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript!