Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited by OldPalHappy 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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
Ad

Answer this question