Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to fix setplayerimage.OnClientEvent?

Asked by 3 years ago

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)

Answer this question