I don’t think so, here’s a simple code example for retrying until success
startergui = game:GetService("StarterGui")
success = false
while not success do
success = pcall(function()
startergui:SetCore("AvatarContextMenuEnabled", true)
end)
task.wait(1/30)
end