I've been trying to put a GUI above a player's head that says his/her rank according to a script. This is the part of the script that assigns the ranks:
rank.Name = "Rank"
rank.Parent = leaderstats
if newPlayer.Name == "DevSupremecy" then
rank.Value = "Chief Developer"
texta.Text = ("Chief Developer")
elseif newPlayer.Name == "Dev_Noobity" then
rank.Value = "Game Owner"
texta.Text("Game Owner")
elseif newPlayer.Name == "CordeliaImperius" then
rank.Value = "Head of Administration"
texta.Text = "Head of Administration")
elseif newPlayer.Name = "Bigreddino556" or "XavierVernalls" then
rank.Value = "Developer"
texta.Text = ("Developer")
elseif newPlayer.Name = "Player1"
rank.Value = ("Studio")
texta.Text = ("Studio")
else
rank.Value = "Guest"
texta.Text = ("Guest")
end
And this is the part of the script that sets up the GUI:
local gui = Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(2,0,.78,0)
gui.StudsOffset=Vector3.new(0,2,0)
local texta=Instance.new("TextBox")
texta.Size=UDim2.new(1,0,1,0)
texta.BackgroundTransparency = 1
texta.BackgroundColor3 = Color3.new(0, 0, 0)
texta.BorderColor3 = Color3.new(0, 0, 0)
texta.TextColor3 = Color3.new(1, 1, 1)
texta.BorderSizePixel = 1
texta.TextScaled = false
texta.TextStrokeTransparency = 1
texta.FontSize = Enum.FontSize.Size18
texta.Parent=gui
wait(5)
Is there something wrong with the IF-ELSEIF-ELSE statements?

3 comments
No, we don't have a group yet. That's why I need the IF-ELSEIF-ELSE statements.
O Well I thought you had it use that if you have a group.
Well, now we have the group! Thanks for the Answer!