Ive tried everything but i just don’t know whats going wrong
it always prints Enum.AvatarPromptResult.Failed
local Players = game:GetService("Players")
local AvatarEditorService = game:GetService("AvatarEditorService")
local player = Players.LocalPlayer
wait(5)
AvatarEditorService:PromptAllowInventoryReadAccess()
local currentDescription = script.Parent:WaitForChild("HumanoidDescription")
local oresult = AvatarEditorService.PromptAllowInventoryReadAccessCompleted:Wait()
if oresult == Enum.AvatarPromptResult.Success then
wait(1)
AvatarEditorService:PromptCreateOutfit(currentDescription, Enum.HumanoidRigType.R6)
local result = AvatarEditorService.PromptCreateOutfitCompleted:Wait()
if result == Enum.AvatarPromptResult.Success then
print("noice")-- Outfit saved!
else
print(result)
end
end