I have a join screen GUI in a game I am making, within that join screen GUI I have a GUI that displays the player’s rank in a group. However I have ran into a lot of difficulties with this. Put simply the script just isn’t changing the GUI’s text.
I tried to fix it via looking for other ways to refer to the player and testing each time on localscripts and scripts but no method seemed to work.
local plr = game.Players.LocalPlayer
if plr:GetRankInGroup(2831912) == 255 then
script.Parent.Text = "The Imperium"
elseif plr:GetRankInGroup(2831912) == 20 then
script.Parent.Text = "O5-1"
elseif plr:GetRankInGroup(2831912) == 19 then
script.Parent.Text = "O5"
elseif plr:GetRankInGroup(2831912) == 18 then
script.Parent.Text = "Developer"
elseif plr:GetRankInGroup(2831912) == 16 then
script.Parent.Text = "Board of Directors"
elseif plr:GetRankInGroup(2831912) == 15 then
script.Parent.Text = "Assistant Director"
elseif plr:GetRankInGroup(2831912) == 13 then
script.Parent.Text = "SCP"
elseif plr:GetRankInGroup(2831912) == 12 then
script.Parent.Text = "Close Associates"
elseif plr:GetRankInGroup(2831912) == 11 then
script.Parent.Text = "Class A"
elseif plr:GetRankInGroup(2831912) == 9 then
script.Parent.Text = "Level V"
elseif plr:GetRankInGroup(2831912) == 8 then
script.Parent.Text = "Level IV"
elseif plr:GetRankInGroup(2831912) == 7 then
script.Parent.Text = "Level III"
elseif plr:GetRankInGroup(2831912) == 6 then
script.Parent.Text = "Level II"
elseif plr:GetRankInGroup(2831912) == 5 then
script.Parent.Text = "Level I"
elseif plr:GetRankInGroup(2831912) == 4 then
script.Parent.Text = "Facility Clearance"
elseif plr:GetRankInGroup(2831912) == 2 then
script.Parent.Text = "Exiled"
elseif plr:GetRankInGroup(2831912) == 1 then
script.Parent.Text = "Class Disposable"
end