Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script gives me Low Member instead of High Member... Why? [Solved]

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

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.