Click on Dummy to Open Avatar Inspect Menu

Hello,

I am trying to make an Outfit Loader game. I am trying to make it so that when the player clicks on a dummy, the player can see what a player is wearing and can also buy it. I am pretty sure this would require the Avatar Inspect Menu but I am unsure. Any help would be appreciated. (below is a video of what I am trying to achieve)

This is a script I tried before:

local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")

function click(plr)
	GuiService:InspectPlayerFromUserId(339310190)
end

script.Parent.ClickDetector.MouseClick:Connect(click)

I believe you aren’t using the function properly. Are you using it in a local script, if so how his the click detector set up?

1 Like

Yes, I am using it in a local script. This is how the click detector is set up:

image

Well I suggest to use this function instead, as well as making the click event on the script and applying a local script inside the player who clicked:

GuiService:InspectPlayerFromHumanoidDescription(Model.Humanoid:GetAppliedDescription() , game:GetService('Players'):GetUserIdFromNameAsync(Model.Name) )

-- Which I am hoping will work haven't really used any of these functions...