On line 12, the function in the pcall is CanSendGameInvite. This method is missing an Async at the end of it; it should be CanSendGameInviteAsync. The exact fixed line is as follows:
local res, canSend = pcall(SocialService.CanSendGameInviteAsync, SocialService, targetPlayer)
Issue Area: DevHub Content
Page URL: SocialService | Roblox Creator Documentation
Thanks for the report. We have filed a ticket to our internal database and we’ll come back when we have any updates for you.
Reply-updating to note that the same issue is present in the new documentation: SocialService.
Replying to note that this has been fixed on the documentation site.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.