Requesting Assistance For PromptCreateOutfit

Good morning guys.

I’ve been messing around with some of the Avatar Service features, I’ve started trying to figure out the PromptCreateOutfit feature. I’ve used the code they originally provide but I wanted to try do it so It can be used for a model. I’ve tried to use

	--local humanoid = game.Workspace.DummyTest:WaitForChild("Humanoid") -- (No work)
	local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid") -- Yes work

	local currentDescription = humanoid:GetAppliedDescription()
	print(currentDescription)
	game:GetService("AvatarEditorService"):PromptCreateOutfit(currentDescription, humanoid.RigType)

	local result = game:GetService("AvatarEditorService").PromptCreateOutfitCompleted:Wait()
	if result == Enum.AvatarPromptResult.Success then
		print("very demure, very cutesy") -- This when via the local player
	elseif result == Enum.AvatarPromptResult.PermissionDenied then
		print("not very nice mate")
	elseif result == Enum.AvatarPromptResult.Failed then
		print("🤨") -- This when via the model
	end

But nothing works, If anyone knows how I can get it to prompt a custom avatar and not the generic one It will be much appreciated, I am currently a headless chicken trying to find the exit in a maze. I have no clue what I am doing with this unfamiliar service.

Kindest Of Regards,
Rhys

I’m not exactly sure what you mean by “used for a model”. Can you elaborate on that?

Ah, my apologies. Basically my end game is to have a model/avatar where users can place what accessories they have from their inventory (this part is all worked out) and then they can save this model/avatar. I’m not sure If It’s even possible to save it with a model but that’s what I’m trying to figure out.

It absolutely is! AvatarEditorService:PromptCreateOufit prompts the user to create an outfit out of the given HumanoidDescription with the given HumanoidRigType. The source of the HumanoidDescription is irrelevant. So long as the client dressed the mannequin through its HumanoidDescription, you can retrieve said HumanoidDescription with Humanoid:GetAppliedDescription, then prompt the user to save it as an outfit

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.