UI Scripting (Need Help)

Does someone know how can i put “other” player’s icons on the Image Label

Sorry if wrong category or my english grammar :[

This might help you: GetUserThumbnailAsync

4 Likes

should i just put this script in Local script on the Image Label ??

1 Like

Yea you could. Edit: That’s only for one player. To get others, you need to get their id and do the same.

30 char this is so annoying

1 Like

I would use BindableEvents so clients can contact Clients and Update eachother

2 Likes

Probably just use the .PlayerAdded event to watch for new players, and fire a RemoteEvent to all clients passing the player’s ID. . Basically:

Server Script:

local playersService = game:GetService("Players")

local event = EVENT_PATH

playersService.PlayerAdded:Connect(function(player)
    event:FireAllClients(player.UserId)
end)

LocalScript:

local event = EVENT_PATH

event.OnClientEvent:Connect(function(UserId)
    --Get the thumbnail and update the imagelabel's imageid, userid has been passed from the server
end)
1 Like