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
5 years ago

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

1local plr = game.Players.LocalPlayer
2 
3if plr:GetRankInGroup (5762728) >=3 then
4   script.Parent.Main.Visible = true
5    elseif plr:GetRankInGroup(5762728) >=3 then
6        script.Parent.Main.Visible = false
7end

1 answer

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

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

Ad

Answer this question