local SetPlayerImage = game.ReplicatedStorage:FindFirstChild("SetPlayerImage") local Players = game:GetService("Players") local ThumbnailType = Enum.ThumbnailType.HeadShot local ThumbnailSize = Enum.ThumbnailSize.Size150x150
SetPlayerImage.OnClientEvent:Connect(function(RandomPlayer) script.Parent.Image = Players:GetUserThumbnailAsync(RandomPlayer.userId, ThumbnailType, ThumbnailSize) end)