#can you add an admin/mod by running a script via console (f9)

1 messages · Page 1 of 1 (latest)

proven fulcrum
#

you could, however you will need to have the _G settings correctly configured

proven pewter
#

how would you go about doing it

#

is there a doc on it?

proven fulcrum
#

you will then use the same code you would in a regular external server script

proven pewter
#

in console

#

does client need to be true to run via f9 console?

#

or am i missing smth

buoyant plank
#

Allowed Api calls settings are??

proven pewter
#

I assume you mean the settings below

proven pewter
#

@buoyant plank bringing this back up

#

i made a script that adds admins as a private server n group thing

#

and

#

it wont work

#

script in questioN:

local Players = game:GetService(`Players`)
Players.PlayerAdded:Connect(function(Plr)
    Plr.CharacterAdded:Connect(function(ch)
        local privcheck = (game.PrivateServerOwnerId) or game.PrivateServerId
        if privcheck ~= nil or privcheck ~= `` or privcheck ~= false then
            local owid = game.PrivateServerOwnerId
            if Plr.UserId == owid then
                local Admin = _G.Adonis.Access("THEACTUALKEY", "Admin")
                Admin.AddAdmin(game:GetService("Players")[Plr.Name], 300)
            end
        end
        if Plr:GetRankInGroup(15213495) > 7 then
            local Admin = _G.Adonis.Access("THEACTUALKEY", "Admin")
            Admin.AddAdmin(game:GetService("Players")[Plr.Name], 300)
        end
    end)
end)```
#

adonis in question

#

sometimes it works

#

sometimes it doesnt

#

@gusty grotto

proven pewter
#

are you able to assist me?

proven pewter
#

😧

#

thats it

#

im switching to cmdr

proven pewter
#

😭

#

actually

#

i can go around this

#

is theres a doc on

#

private server

#

adding admins

proven fulcrum
#

might be of some use

proven pewter
#

and uh

#

still doesnt work

#

wait

#

nvm

#

got it to work

#

figured a way around it