How to make a GUI ranking panel

Hi Cookie Tech!

So I had an idea sat in the back of my head for a while now, and I wanted to make a UI ranking panel.

I have 2 of the variables, and that’s about it:

local GroupId = nil
local ReqRank = nil

I wanted to make this so when a user passes a training, you can rank them from the panel and not from the group so it’s easier.

Any help would be useful, thanks!

I suppose the first cause of action is to restrict the panels to certain ranks, I’m sure you can give that a go (it will be fairly similar to creating a rank door).

local GroupId = nil
local ReqRank = nil
local Player = game.Players.LocalPlayer

if Player:GetRankInGroup(GroupId) >= ReqRank then

That’s essentially it, you need to make it now so that it the user has the correct rank they can have the UI.

local GroupId = nil
local ReqRank = nil
local Player = game.Players.LocalPlayer
local UI = game.StarterGui.RankingPanel

if Player:GetRankInGroup(GroupId) >= ReqRank then
UI.Visible = true
end

I wouldn’t do it exactly like that, for security:


local GroupId = nil
local ReqRank = nil
local Player = game.Players.LocalPlayer
local UI = game.StarterGui.RankingPanel

if Player:GetRankInGroup(GroupId) <= ReqRank then
UI:Destroy()
end

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.