I'm trying to make this billboard GUI display properties on a player's uppertorso, properties like grouprank, and name, when I run the game, it shows up on the uppertorso, but does not display the information I want. On the dummy, it displays said info. Script is here, it's a serverscript (ignore the groupid just saying groupid, that is on purpose.):

local nametext = script.Parent.NAME
local ranktext = script.Parent.RANK
local gui = script.Parent

game.Players.PlayerAdded:Connect(function(player)
	nametext.Text = player.Name
	ranktext.Text = player:GetRoleInGroup(groupid)
	game.Players.PlayerAdded:Connect(function(character)
		gui.Parent = player.character.UpperTorso
	end)
end)