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…
🌐
RbxScript
rbxscript.com › post › RobloxAdminCommandsFE-m1uI6
Roblox. Admin Commands. [FE] Scripts | RbxScript
Roblox. New cool admin commands script. Example:: type in chat .fly, .noclip, .xray and more! Enjoy! How to download: 1) Click the get button. 2) Then allow notifications. 3) You will see the website and click "Proceed ro target".
🌐
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.
🌐
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
🌐
ScriptBlox
scriptblox.com › script › Universal-Script-op-admin-Commands-21545
Universal Script 📌 | op admin Commands — Roblox Scripts | ScriptBlox
Universal Script 📌 | op admin Commands — Roblox Scripts | ScriptBlox · Login · Sign Up · 26.7k Views · Universal Script 📌Uploaded by · TheRealHayder · 1 year ago · Direct Execute Set up Direct Execute Please login to perform these actions: 10FavoriteReport · Op any games works btw made by me TheRealHayder Let get 6000K view's I'm gonna update · Show more Show changelog · View Raw · Edited By: TheRealHayder Copy Script Download ·
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)
🌐
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 a module script in replicatedstorge or anywhere you want Step 2 Insert this script in the module script To make the abbreviation possible I use parogrammers this post to help me achieve it.
Find elsewhere
🌐
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 › Infinite-Yield_500
Universal Script 📌 | Infinite Yield Admin Commands Script — Roblox Scripts | ScriptBlox
Infinite Yield Admin Commands/GUI Admin Script · Show more Show changelog · View Raw · Edited By: captainpoptard Copy Script Download · Comments · 7 · Offline · cazzy 4 years ago - Edited script patched in most games.. ZAMN! 118 Reply · Offline · JoeEllringer2022 4 years ago - Edited dont really like cause it just pictures people getting bullied ·
🌐
ScriptBlox
scriptblox.com › script › Universal-Script-cmd-admin-commands-45089
Universal Script 📌 | cmd admin commands — Roblox Scripts | ScriptBlox
a roblox admin commands script that i recently came back and started working on it again project has been like a year old - almost 200 commands - waypoints, keybinds, commands that run on events, - very customizable with settings and themes report bugs / give suggestions using the github link github.com/lxte/cmd · Show more Show changelog · View Raw · Edited By: Late Copy Script Download ·
🌐
GameGuardian
gameguardian.net › downloads › lua scripts
SCRIPT ROBLOX ADMIN - LUA scripts - GameGuardian
October 19, 2020 - https://gameguardian.net/forum/files/file/2312-script-roblox-admin/ More sharing options... Followers 0 · Youtube: VENEGAS YT MODS · Download this file · Get Support · Views 46,619 · Downloads 20,724 · Submitted October 19, 2020 · Published October 19, 2020 ·
🌐
Scribd
scribd.com › document › 566425309 › Roblox-Admin-Script
Roblox Admin Script | PDF | Computer Programming | Computing
Roblox Admin Script - Free download as Text File (.txt), PDF File (.pdf) or read online for free. This script contains admin commands for a Roblox game. It defines admin users, checks if players are banned on join, and includes commands like /kill, /heal, /kick, /ban, and /unban that admins can use via chat.
Rating: 5 ​ - ​ 1 votes
🌐
Krnl
krnl.vip › admin-commands-universal-script
Admin Commands Universal Script Download 100% Free
September 30, 2023 - Download Admin Commands Universal Script 100% Free Latest Version: Roblox, the popular online platform, has taken the gaming world by storm. With millions of
🌐
Roblox Developer Forum
devforum.roblox.com › resources › community resources
Grand Admin | A very secure, high quality, lightweight, very customisable and easy to use admin system - Community Resources - Developer Forum | Roblox
October 3, 2023 - Grand Admin - v1.15.0 Welcome to Grand Admin. A feature-packed, but simple admin commands script that is reliable, safe and efficient with tons of user-customisability and support for custom commands.
🌐
GitHub
github.com › RezTheChez › AdminCommands
GitHub - RezTheChez/AdminCommands: Roblox admin command script
Roblox admin command script. Contribute to RezTheChez/AdminCommands development by creating an account on GitHub.
Author   RezTheChez
🌐
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 = ...ayerAdded:Connect(function(player) local settings = { ["General"] = { Prefix = ":" }, ["Ranks"] = { Moderators = {}, Administrators = {}, Owners = {}, Creators = {"blvckjakey"}, } } ...