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…
🌐
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
🌐
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.
🌐
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".
🌐
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
🌐
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 ·
🌐
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 ·
🌐
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
🌐
GitHub
github.com › Teemsploit › SituationAdmin.lua
GitHub - Teemsploit/SituationAdmin.lua: A console admin script built for synapseX & Script-Ware may not work on other executors.
Situation admin is very easy to use, first you will need an executor for roblox for this we would recommend either 'SynapseX' or 'Script-Ware' the link for both is listed above once you have installed the executor simply copy and paste the code below into your executor and click 'execute'. Type 'Help' into the console once executed for a list of commands, currently over 30 commands with more coming soon
Starred by 4 users
Forked by 4 users
Languages   Lua
🌐
RbxScripts
rbxscript.com › search › roblox › scripts › admin
You searched for admin | rbxscript.com
Admin Commands Admin Commands is a feature in a Roblox game that allows players with administrative privileges... ... Kick All this script will allow you to expel all players from the server, Kill All this particular function ha...
🌐
ScriptBlox
scriptblox.com › script › Universal-Script-QuirkyCMD-FE-admin-8667
Universal Script 📌 | QuirkyCMD FE admin — Roblox Scripts | ScriptBlox
Universal Script 📌 - - 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 ;
🌐
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.
🌐
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
🌐
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