Avatar Inspect Menu

The Avatar Inspect Menu allows users to view another user's Roblox avatar character, try on items, and even make purchases within an experience. Roblox enables this menu by default and users in your experience can access this menu in three ways:

  • Opening the experience's main menu and clicking the View button next to a user in the Players tab.
  • Clicking on a user's name in the player list (upper-right section of the game view).
  • Selecting the Inspect option in the Avatar Context Menu, an opt-in feature which provides additional user-to-user social interaction.

You can customize a user's Avatar Inspect Menu in the following ways:

For more specific catalog access, you can also use the Avatar Editor Service to access and make changes to a user's platform-wide avatar within an experience.

Inspecting Currently Equipped Items

By default, the Inspect Menu shows the same information as the user's Roblox Avatar profile page. The avatar outfit may not match the user's current appearance, since you may have opted to equip different accessories or avatar items at that specific moment.

In the cases where the default Inspect Menu may not be accurate to the current character's outfit, you can inspect a character's current outfit with the following steps:

  1. Disable the default profile-based Inspect Menu by setting GuiService:SetInspectMenuEnabled() with a value of false.
  2. Get an current HumanoidDescription from the target player character.
  3. Call GuiService:InspectPlayerFromHumanoidDescription() to load the Inspect menu based off of the HumanoidDescription.

Use the following code sample to inspect the currently equipped items of a specific player:


1local GuiService = game:GetService("GuiService")
2local Players = game:GetService("Players")
3local player = Players.LocalPlayer
4
5-- Make profile-based Inspect Menu inaccessible
6GuiService:SetInspectMenuEnabled(false)
7
8local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
9if humanoid then
10-- Get current HumanoidDescription from a player character
11local humanoidDescription = humanoid:GetAppliedDescription()
12
13-- Load the inspect menu from a humanoid description
14GuiService:InspectPlayerFromHumanoidDescription(humanoidDescription, player.Name)
15end
16

Inspecting Specific Users

The Avatar Inspect Menu can inspect players who aren't in the current experience. You can use GuiService:InspectPlayerFromUserId() to inspect a player from any Player.UserId.

Use the following code sample to open the Avatar Inspect Menu based on a UserId:


1
2local GuiService = game:GetService("GuiService")
3local Players = game:GetService("Players")
4
5-- Get user ID by player name
6local success, userId = pcall(function()
7return Players:GetUserIdFromNameAsync("IgnisRBX")
8end)
9
10if success then
11GuiService:InspectPlayerFromUserId(userId)
12end
13