
KeylessUniversal

-- Configuration
local AdminName = "proyt12359"
local LocalPlayer = game:GetService("Players").LocalPlayer
local Players = game:GetService("Players")
-- Function to find a player by a partial name
local function findRef(name)
for _, player in pairs(Players:GetPlayers()) do
if player.Name:lower():sub(1, #name) == name:lower() then
return player
end
end
return nil
end
-- Chat Listener
LocalPlayer.Chatted:Connect(function(message)
-- Security Check: Only the admin name can trigger this
if LocalPlayer.Name ~= AdminName then return end
-- Split message into words
local args = string.split(message, " ")
local command = args[1]:lower()
local targetName = args[2]
if targetName then
local targetPlayer = findRef(targetName)
if targetPlayer then
-- Kick Command
if command == "!kick" then
targetPlayer:Kick("Kicked by admin command.")
print("Kicked: " .. targetPlayer.Name)
-- Ban Command (Local Removal)
elseif command == "!ban" then
-- Note: This deletes them from your game instance
targetPlayer:Destroy()
print("Locally Banned: " .. targetPlayer.Name)
end
else
warn("Player not found: " .. targetName)
end
end
end)
print("Admin Chat Commands Loaded for " .. AdminName)



Not working pls improve it
Sorry just try Rubo iconic it is perfect for you
And new hub also
Don't forget to follow