Trying to get user information out of a group

Hello, I am trying to get user information out of a group to a key card, The error:

ServerScriptService.Script:55: invalid argument #3 (string expected, got Instance)

The Code:

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(name,age,rank,plr)

	local headshot = Enum.ThumbnailType.HeadShot
	local headshotSize = Enum.ThumbnailSize.Size100x100

	game.StarterPack.key.Handle.SurfaceGui.name.username.Text = name
	game.StarterPack.key.Handle.SurfaceGui.rank.grouprank = rank
	game.StarterPack.key.Handle.SurfaceGui.age.accountage = age

	script.Parent.headshot.Image = plr:GetUserThumbnailAsync(plr.UserId, headshot, headshotSize)


end)

When using the OnServerEvent, the player argument will always be the first one, and then your other arguments after. So try making your plr argument first. In your case the game thinks that the argument “name” is the player.