Yeah I see no way on how to get a owners name beside game.CreatorId. And as I said I’m working on a better version
And I don’t know of any other way to see commands being called in
Yeah I see no way on how to get a owners name beside game.CreatorId. And as I said I’m working on a better version
And I don’t know of any other way to see commands being called in
I didn’t think people used admins in their games anyways? Damn, ok.
I do like to use my own solution with simple ban / kick stuff, but this works fine for anyone who doesn’t want the HD or Kohl’s Admins logos in them.
You can see if the game type is a user or group. This is what I did in my admin commands system:
--///// Adds the creator of the group / game to the admins table. \\\\\
if game.CreatorType == Enum.CreatorType.User then
table.insert(admins,#admins+1,game.Players:GetNameFromUserIdAsync(game.CreatorId))
elseif game.CreatorType == Enum.CreatorType.Group then
local groupId = game.CreatorId
local gs = game:GetService("GroupService")
local group = gs:GetGroupInfoAsync(groupId)
local owner = group.Owner
local creator = owner.Name
table.insert(admins,#admins+1,creator)
end
I didn’t use UserIds for my admin system, so the code will have to be edited a bit. The “admins” table is a table where everyone’s names are stored that are an admin.
I’m not sure why this was created, what does it do different than any other admins? I personally think if you are going to make an admin, you should add special features that nothing else has.
I’m not sure why Khols admin was createdm what dose HD Admin have that Khols dosent? Honestly, at this point I wil wuit RBXAdmin