This is the code I tried but it didn't work. I put it in a local script and placed it inside starter GUI with the GUI itself as the child.
local requiredRank = 246
local groupId = 5169488
local client = game.Players.LocalPlayer
if client:GetRoleInGroup(groupId) >= requiredRank then
client.PlayerGui.Rooms.Enabled = true
client.PlayerGui.StaffTeleport.Enabled = true
end

3 comments
So, if there are multiple ranks needing to see it, would I write them all down there?
or i guess you can do "if p:IsInGroup(ID).Rank == "Admin" or p:IsInGroup(ID).Rank == "Member" then" this is how you do it
I dont think my script works