In the documentation where the ExperienceNotificationService:PrompOptIn() function is introduced, the second pcall doesnt have the closure parantheses at the end. (Line 15)
Page URL: https://create.roblox.com/docs/reference/engine/classes/ExperienceNotificationService#PromptOptIn