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

How would I make a group rank only GUI so a certain rank and up has access to it?

Asked by
Comqts 6
4 years ago

I want it so rank 3 or up can have access, but 2 and below doesn't have access.

local plr = game.Players.LocalPlayer

if plr:GetRankInGroup (5762728) >=3 then
   script.Parent.Main.Visible = true
    elseif plr:GetRankInGroup(5762728) >=3 then
        script.Parent.Main.Visible = false
end

1 answer

Log in to vote
0
Answered by
marfit 104
3 years ago

That code should work fine, however replace .Visible = false with :Destroy()

Ad

Answer this question