#can you add an admin/mod by running a script via console (f9)
1 messages · Page 1 of 1 (latest)
here is adonis' _G documentation
First of all, what is the _G API? The _G API is short for Global, which means it can be executed in any script (assuming you have the right settings enabled). There currently is no (good) documenta...
you will then use the same code you would in a regular external server script
using the correct api key doesnt work
in console
does client need to be true to run via f9 console?
or am i missing smth
Allowed Api calls settings are??
Ah ill look into it tomorrow enable shit and proper trial it out
I assume you mean the settings below
@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
are you able to assist me?
dawg this doesnt work
😭
actually
i can go around this
is theres a doc on
private server
adding admins