
KeylessUniversal

local Admins = { -- Add your Roblox username here
"YourUsernameHere"
}
-- Check if player is admin
local function isAdmin(player)
for _, name in ipairs(Admins) do
if player.Name == name then
return true
end
end
return false
end
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if not isAdmin(player) then return end
local split = msg:split(" ")
local cmd = split[1]
-- !kick PlayerName
if cmd == "!kick" and split[2] then
local target = game.Players:FindFirstChild(split[2])
if target then
target:Kick("You were kicked by an admin.")
end
end
-- !kill PlayerName
if cmd == "!kill" and split[2] then
local target = game.Players:FindFirstChild(split[2])
if target and target.Character then
target.Character:BreakJoints()
end
end
-- !tp Player1 Player2
if cmd == "!tp" and split[2] and split[3] then
local p1 = game.Players:FindFirstChild(split[2])
local p2 = game.Players:FindFirstChild(split[3])
if p1 and p2 and p1.Character and p2.Character then
p1.Character:SetPrimaryPartCFrame(
p2.Character.PrimaryPart.CFrame + Vector3.new(3,0,0)
)
end
end
-- !announce message
if cmd == "!announce" then
local message = msg:sub(11) -- everything after "!announce "
for _, plr in ipairs(game.Players:GetPlayers()) do
plr:LoadCharacter() -- Example of utility, swap to a real GUI in advanced version
print("ANNOUNCE:", message)
end
end
end)
end)



I wanted my script to look ai lol