Invalid argument value

why is argument 1 missing or NULL when used for local AvatarIcon, IsReady = Players:GetUserThumbnailAsync(UserId, ThumbType, ThumbSize)

SubmitLocalAnnouncementRemoteEvent.OnServerEvent:Connect(function(SendMessagePlayer, ClearMessage)
    ControlModule.LocalAnnouncement(SendMessagePlayer, ClearMessage)
function Control.LocalAnnouncement(SendMessagePlayer, ClearMessage)
    ShowLocalAnnouncementRemoteEvent:FireAllClients(SendMessagePlayer, ClearMessage, Lesson)
ShowLocalAnnouncementRemoteEvent.OnClientEvent:Connect(function(TargetRemoteEventPlayer, SendMessagePlayer, ClearMessage, Lesson)
    local UserId = SendMessagePlayer.UserId
    local ThumbType = Enum.ThumbnailType.AvatarBust
    local ThumbSize = Enum.ThumbnailSize.Size420x420
    local AvatarIcon, IsReady = Players:GetUserThumbnailAsync(UserId, ThumbType, ThumbSize)

yes, there is such a variable at the top: local Players = game:GetService(“Players”). What can be done?

That shouldn’t be the issue. That function is to be called from the Players class.

That’s why there’s a UserId parameter

I’ll be scouting for other potential errors

if anything this is a local script in starter player scripts

Could you show us what is calling this event potentially?

You don’t send 4 arguments to the client, only 3:

There is no default argument for OnClientEvent; the parameters match what you sent to it from the server

1 Like

I don’t think that’s the issue

but the first argument of OnClientEvent is the default event target, so you don’t have to specify it?

No, only OnServerEvent has a default argument