So, my goal is to get the first player in a server to recieve Adonis owner admin.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
if player.MembershipType == Enum.MembershipType.Premium then
local data = {
Settings = {
Moderators = {player.Name}
};
}
require(359948692)(data) -- adonis API module
end
This code will supposedly give you admin if placed in server and if you are premium. I have not tried it, but it can give an idea of how the admin is given.
I then tried making this to give everyone admin. My plan was to later on add a line destroying the script after someone was given the admin. (test):
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local data = {
Settings = {
Moderators = {player.Name}
};
}
require(359948692)(data) -- adonis API module
And that did not work. Any ideas?

2 comments
So, you only want the first player to get admin?
Yes. Only the first player joining the server (creating it) should get admin.