My rank in the group is 255 (Owner), but when in game it comes up with the Low Member gui for ranks 1 though to 5 (Trusted Member / Helper / Administrator / Developer)... there are no errors in the log... any ideas?
if script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 0 then script.Parent.NoWindow.Visible = true script.Parent.LowWindow:Destroy() script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 1 or 2 or 3 or 4 or 5 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow.Visible = true script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 6 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow:Destroy() script.Parent.MediumWindow.Visible = true script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 255 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow:Destroy() script.Parent.MediumWindow:Destroy() script.Parent.HighWindow.Visible = true end
After messing around, I found that in needed to do this
if script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 0 then script.Parent.NoWindow.Visible = true script.Parent.LowWindow:Destroy() script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 1 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow.Visible = true script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 2 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow.Visible = true script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 3 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow.Visible = true script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 4 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow.Visible = true script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 5 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow.Visible = true script.Parent.MediumWindow:Destroy() script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 6 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow:Destroy() script.Parent.MediumWindow.Visible = true script.Parent.HighWindow:Destroy() elseif script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(3833014) == 255 then script.Parent.NoWindow:Destroy() script.Parent.LowWindow:Destroy() script.Parent.MediumWindow:Destroy() script.Parent.HighWindow.Visible = true end