Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Any Ideas on how to make a Module loader for Admin commands?

Asked by 7 years ago

I have tried many things to make an admin loader such as Kohl's infinite.. If you have any ideas that would be great, this seems like a give, but it's not..

If you don't understand;

IN THE COMMANDS MODULE

Admins = {}

function OnChat(Message, Player)
    for i,Admin in pairs(Admins) do
        if Player.Name == Admin then
            if Message:lower() == "nobase" then
            game.Workspace.Base:remove()
        end
    end
end


for i,Player in pairs(game.Players:GetPlayers()) do
    local player = Player
    player.Chatted:connect(function(Message)
        OnChat(player, Message)
    end)
end

game.Players.PlayerAdded:connect(function(Player)
    local player = Player
    player.Chatted:connect(function(Message)
        OnChat(player, Message)
    end)
end)

IN THE SETTINGS MODULE


local Admins = {} local Banned = {} local Bet = "!"

If you understand, please help! Thanks ;)

Answer this question