So I am not that good as a scripter and this did not work. I just want it so if the groupid = 2864146 then it checks what rank you are and if you are a Waiter Rank, the GUI is not transparent, but if the rank is not a waiter, the gui is transparent. Please help. Thank you.
Groupid = 2864146
Min = 4
Max = 255
if Groupid rank = Waiter
then script = true
else = script.Parent = false
end
if game.Players.LocalPlayer.Name ~= "" and game.Players.LocalPlayer:GetRankInGroup(Workspace.GiveSystem.GroupID.Value) < Workspace.GiveSystem.RankID.Value then
return
end

7 comments
I still do not understand it. Do I insert the script into a LocalScript or a regular Script?
Since I used LocalPlayer, it is a LocalScript.
That is what I thought. Should I place this in the screen GUI?
You can put it anywhere a LocalScript will run (replicated storage, playergui, etc.) as long as you put the correct path on line 3 of the first code block.
Yeah, I am having trouble with that. Here is how I have it:
So I have it so that the StarterGui is the parent of the Gui I want to be transparent unless the rank is a waiter but here is the script: local groupId= 2864146 local plr = game.Players.LocalPlayer local guiPath = plr.PlayerGui.ScreenGui.DesiredGui --edit this path to be the gui you want to change guiPath.Visible = (plr:GetRoleInGroup(groupId) == "Waiter")
If you put this script inside the gui, replace line 3 with "local guiPath = script.Parent"