Reproduction Steps
Calling AvatarEditorService:PromptAllowInventoryReadAccess() without any wait causes Studio to not show any prompt, when if you wait a bit it does.
- Create a new place
- Put in a local script under “StarterPlayerScripts”
- Put the following content in the script
local AvatarEditorService = game:GetService("AvatarEditorService")
AvatarEditorService:PromptAllowInventoryReadAccess()
- Expected result: A prompt to show up as expected.
- Actual result: Nothing happens
The likely cause is that the initialization script is deferred a bit, so the prompt never shows up. Please fix this race condition! Thank you!
This prompt doesn’t show up unless you delay the prompt API call a bit
Workaround
Current workaround is to insert a task.wait(1)
at the beginning of the script.
Issue Area: Studio
Issue Type: Other
Impact: Low
Frequency: Constantly
Date First Experienced: 2022-11-05 00:11:00 (-07:00)