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
That code should work fine, however replace .Visible = false
with :Destroy()