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

Adding admin commands to admin from my group, how could I do this?

Asked by 4 years ago

So im very new to Roblox studio and I am making a hub for my group that has me as the owner with owner commands and I have two other admins with the rank admin in the group and I don't know how to give them admin commands in my game. Can someone tell me how I can do this?

2 answers

Log in to vote
0
Answered by
BashGuy10 384 Moderation Voter
4 years ago
Edited 4 years ago

Hi there, i'm BashGuy10. I can help you!

Problem

You want group admin commands, for certain ranks.

Fixes

You want to use :GetRankInGroup()

How can i use :GetRankInGroup()?

Mess around with the script below:

local rankid = 000 -- Rank id here
local groupid = 000 -- Group id in here

game.Player.PlayerAdded:Connect(function(plr)
    if plr:GetRankInGroup(groupid) == rankid then
        -- cool stuff in here
    end

end)
Ad
Log in to vote
0
Answered by 4 years ago

I would recommend using the HD admin model, I use this one. I think that this admin system automatically gives you the admin owner rank. One way I know to admin your players in your group is to get in the same game as them and say ;rank <their username> <rank you want them to be (HeadAdmin, Mod, Admin, Etc..)>. I think they have to be online in your game.

Answer this question