I have a script in ServerSriptService and StarterGui. Im trying to make a Gui that shows and says if a certain rank in a group joins the game. I have got it saying the person that joined but its not showing the head of the person.
Server Script Service
game.Players.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(5473485) >= 17 then
local name = player.Name
local id = player.UserId
game.ReplicatedStorage.HRjoin:FireAllClients(name, id)
end
end)
StarterGui
game.ReplicatedStorage.HRjoin.OnClientEvent:Connect(function(playerName, playerID)
script.Parent.Frame.TextLabel.Text = "HR "..playerName.." has just joined the game!"
script.Parent.Frame.ImageLabel.Image = "rbxthumb://type=AvatarHeadShot&id="..playerID.."&width=60&height=60"
end)

1 comment
Could you please be more specific.