for i=1,#target do
    game.Players.target[i].Character:BreakJoints()
end

Is incorrect, if "target" contains "FakeNameHereSoNoStalkers" then the run code would be:

game.Players.target.1.Character:BreakJoints()

Which is completely incorrect.


c = game.Players:GetChildren()

Never use "Players:GetChildren()", it is not guaranteed to return only players.

Instead use:

c = Game.Players:GetPlayers()

if msg:lower()=="me" then
    table.insert(people, source)
    return people

Here you add the player's name in the list "people", where you in the other places adds the player object.


Fixed code:

local Admins = {"FakeNameHereSoNoStalkers"}

function Kill(Players)
    for i,Player in ipairs(Players) do
        if Player.Character then
            Player.Character:BreakJoints()
        end
    end
end

function IsAdmin(Player)
    for i,AdminName in ipairs(Admins) do
        if Player.Name:lower() == AdminName:lower() then return true end
    end
    return false
end

function GetPlayers(Player,Msg)
    local Targets = {}
    local Players = Game.Players:GetPlayers()

    if Msg:lower() == "me" then
        Targets = { Player }
    elseif Msg:lower() == "all" then
        Targets = Players
    elseif Msg:lower() == "others" then
        for i,Plr in ipairs(Players) do
            if Plr ~= Player then
                table.insert(Targets,Plr)
            end
        end
    else
        for i,Plr in ipairs(Players) do
            if Plr.Name:lower():sub(1,Msg:len()) == Msg then
                table.insert(Targets,Plr)
            end
        end
    end
    return Targets
end

Game.Players.PlayerAdded:connect(function(Player)
    if IsAdmin(Player) then
        Player.Chatted:connect(function(Msg)
            if Msg:lower():sub(1,6) == ":kill " then
                Kill(GetPlayers(Player,Msg:sub(7)))
            end
        end)
    end
end)
Answer from ZombieSpy on Stack Overflow
🌐
Roblox Developer Forum
devforum.roblox.com › help and feedback › code review
Admin commands script - Code Review - Developer Forum | Roblox
July 2, 2024 - Since this is for already working code I will use this category. it says to include rblx file: Place1.rbxl (52.4 KB) here is my code local command = "/admin" game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) ...
🌐
GitHub
github.com › rjk0720 › Roblox-Commands › blob › master › AdminCommands.lua
Roblox-Commands/AdminCommands.lua at master · rjk0720/Roblox-Commands
A growing set of admin commands for Roblox. Contribute to rjk0720/Roblox-Commands development by creating an account on GitHub.
Author   rjk0720
🌐
Roblox Developer Forum
devforum.roblox.com › resources › community resources
Admin commands for YOUR roblox game! - Community Resources - Developer Forum | Roblox
January 9, 2022 - So admin commands are kind of necessary for a lot of people but hard to understand and hard to add new one. SO to do that I made a very SIMPLE to understand admin command module. Here is how it works. Step 1 First make …
🌐
King Exploits
kingexploits.com › post › roblox-nameless-admin-script
Roblox Nameless Admin Script
December 4, 2024 - This is the best roblox admin commands script in my opinion. It has more than 350+ commands and I love every single one of them! Works on mobile and PC (tested on Solara Exploit)
🌐
Roblox Developer Forum
devforum.roblox.com › help and feedback › code review
Simple Admin Script - Code Review - Developer Forum | Roblox
July 3, 2020 - ServerScript local server = ... = {"blvckjakey"}, } } spawn(function() server.run(player, settings) end) end) Module local admin = {} admin.run = function(...) local arguments = {...}; local player = arguments[1] local ...
Top answer
1 of 1
1
for i=1,#target do
    game.Players.target[i].Character:BreakJoints()
end

Is incorrect, if "target" contains "FakeNameHereSoNoStalkers" then the run code would be:

game.Players.target.1.Character:BreakJoints()

Which is completely incorrect.


c = game.Players:GetChildren()

Never use "Players:GetChildren()", it is not guaranteed to return only players.

Instead use:

c = Game.Players:GetPlayers()

if msg:lower()=="me" then
    table.insert(people, source)
    return people

Here you add the player's name in the list "people", where you in the other places adds the player object.


Fixed code:

local Admins = {"FakeNameHereSoNoStalkers"}

function Kill(Players)
    for i,Player in ipairs(Players) do
        if Player.Character then
            Player.Character:BreakJoints()
        end
    end
end

function IsAdmin(Player)
    for i,AdminName in ipairs(Admins) do
        if Player.Name:lower() == AdminName:lower() then return true end
    end
    return false
end

function GetPlayers(Player,Msg)
    local Targets = {}
    local Players = Game.Players:GetPlayers()

    if Msg:lower() == "me" then
        Targets = { Player }
    elseif Msg:lower() == "all" then
        Targets = Players
    elseif Msg:lower() == "others" then
        for i,Plr in ipairs(Players) do
            if Plr ~= Player then
                table.insert(Targets,Plr)
            end
        end
    else
        for i,Plr in ipairs(Players) do
            if Plr.Name:lower():sub(1,Msg:len()) == Msg then
                table.insert(Targets,Plr)
            end
        end
    end
    return Targets
end

Game.Players.PlayerAdded:connect(function(Player)
    if IsAdmin(Player) then
        Player.Chatted:connect(function(Msg)
            if Msg:lower():sub(1,6) == ":kill " then
                Kill(GetPlayers(Player,Msg:sub(7)))
            end
        end)
    end
end)
🌐
CodaKid
codakid.com › home › blog › roblox › roblox commands | the ultimate guide
Roblox Commands | The Ultimate Guide - CodaKid
October 28, 2024 - Make sure you have admin rights, ... via an Admin Pass from the game’s library. This is just a brief summary of adding Roblox commands to your game. If you want a more in-depth tutorial, you can find plenty via the Roblox community! We highly recommend checking out some coding for kids’ classes or tutorials while you’re at it. Basic coding knowledge will be a big help when you’re messing around with Roblox command scripts...
Find elsewhere
🌐
Rscripts.net
rscripts.net › script › ak-admin-universal-FpBm
AK ADMIN (UNIVERSAL) - Roblox Scripts | Rscripts.net
• Universal Features: Switch avatar types, copy appearances, and teleport seamlessly . • Game-Specific Commands: Enjoy targeted commands for MIC UP and SFOTH, crafted for enhanced experiences. • Smooth UI: A clean, light baby blue theme with drag-and-drop functionality and dynamic search.
🌐
YouTube
youtube.com › monzterdev
How to make Admin Commands! Roblox Game Tutorial Episode 4 - YouTube
Today we learn how to easily add admin commands to our Roblox game!Download Cmdr:https://github.com/evaera/Cmdr/releases/Cmdr Documentation:https://eryn.io/C...
Published   August 23, 2024
Views   3K
🌐
ScriptBlox
scriptblox.com › script › Universal-Script-QuirkyCMD-FE-admin-8667
Universal Script 📌 | QuirkyCMD FE admin — Roblox Scripts | ScriptBlox
- 100+ commands including kick, kill, btools and many many more - mobile support - simple interface - discord server with a list of working games (https://discord.gg/aG6KdRje3x) - plugin support - storing working games for quicker injection - testing game with no executor required: https://www.roblox.com/games/7593160773/quirkyCMD-test default chat prefix and cmd bar keybind is ; Show more Show changelog · View Raw · Edited By: ____ Copy Script Download ·
🌐
Fandom
roblox.fandom.com › wiki › Command_script
Command script | Roblox Wiki - Fandom
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
YouTube
youtube.com › watch
Best Roblox Admin Script Universal Infinite Yeild GUI (500+ CMDS!) - YouTube
Get Amazing PolyBuzz here😍: https://polybuzz.onelink.me/GQGs/esv5zcyb and search my code【Sakpot】to unlock premium features!Best Roblox Admin Script Universa...
Published   December 29, 2024
🌐
Pinecone Academy
pinecone.academy › blog › mastering-roblox-commands-the-ultimate-2025-guide-to-power-control-and-customization
Mastering Roblox Commands: The Ultimate 2025 Guide to Power, Control, and Customization - Pinecone Academy
May 27, 2025 - Whether you are a game developer, server admin, or a player aiming to enhance your Roblox experience, mastering Roblox commands can be a game-changer. Roblox commands are powerful tools that allow you to control your game environment, manage players, customize gameplay, and troubleshoot issues—all with simple text inputs. In this comprehensive guide, you’ll learn everything about Roblox commands—from basic usage and popular commands to advanced scripting and security practices—so you can take full command of your Roblox universe.
🌐
Roblox Developer Forum
devforum.roblox.com › resources › community tutorials
The Ultimate Basic Admin Essentials Guide - Community Tutorials - Developer Forum | Roblox
June 11, 2024 - Basic Admin Essentials 2.0 (BAE) is by far the most commonly used admin commands module amongst cafe/restaurant roleplay games. It’s a super robust and versatile module, but has one big problem: there is no public documentation. This means that the full potential and functionality of the ...
🌐
YouTube
youtube.com › watch
Roblox Admin Script Tutorial - YouTube
This video covers how to create an admin system for a Roblox game. This admin system will allow you to specify who should receive admin, and easily allow you...
Published   May 22, 2024
🌐
Roblox Developer Forum
devforum.roblox.com › resources › community tutorials
How To Make Admin Commands, A More In-Depth Guide: Part 1 - Community Tutorials - Developer Forum | Roblox
November 23, 2021 - Around a year ago, I made this tutorial, with little knowledge. A year later, I bring to you this tutorial; a much more in-depth guide to making admin commands. Parsing First of all, how do scripts read commands? There’s many ways, but I use message:split(" ") to get the arguments from the ...