Sorry for the horrible title, I couldn't think of what to say.
I am making admin commands and I am having a problem, see I am going along the route of Kohls with the Owner, Super, Admin kind of deal there, and I can not figure out how to implement that within the script.
SCRIPT HERE
local owner = {"azurael21","Player"}
local super = {}
local admins = {}
local bans = {}
local groupadmin = false -- set to true if you want it
local groupid = 0 -- only needed if groupadmin is set to true
local groupranks = {0,0,0} -- only needed if groupadmin is set to true
local prefix = "^"
-- do not touch anything below this line unless you know what you are doing, it can mess up the script.
function contains(list, element)
for _, value in pairs(list) do
if value == element then
return true
end
end
end
game.Players.PlayerAdded:connect(function(plr)
if groupadmin == true then
if contains(groupranks, plr:GetRankInGroup(groupid)) then
for _,v in pairs() -- within the () is where normally "admin" would go but I have owner+super as well...
end
end
end)
any and all help appreciated.
