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)