I want it so rank 3 or up can have access, but 2 and below doesn't have access.
1 | local plr = game.Players.LocalPlayer |
2 |
3 | if plr:GetRankInGroup ( 5762728 ) > = 3 then |
4 | script.Parent.Main.Visible = true |
5 | elseif plr:GetRankInGroup( 5762728 ) > = 3 then |
6 | script.Parent.Main.Visible = false |
7 | end |
That code should work fine, however replace .Visible = false
with :Destroy()