Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

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 <rank you want them to be (HeadAdmin, Mod, Admin, Etc..)>. I think they have to be online in your game.

This discussion is preserved as it was. New answers, comments, and votes are closed.