We use cookies on this site to enhance your user experience

Avatar Inspect Menu

Avatar Inspect Menu

Sep 25 2019, 2:01 PM PST 5 min

To view items that are equipped by other players, Roblox offers the avatar Inspect Menu where players can see an item’s details, try it on, mark it as a favorite, and even buy it. Like other in-game commissions, developers earn 10% of each purchase made through the Inspect Menu.

Accessing the Inspect Menu

By default, the Inspect Menu is accessible in three ways:

  • By opening the game’s menu and clicking the View button next to a player in the Players tab.
  • By clicking on a player’s name in the player list (upper-right section of the game view).
  • As an option in the articles/Avatar Context Menu|Avatar Context Menu, an opt-in feature which provides easy player-to-player social interaction.

Additionally, the Inspect Menu can be explicitly opened via API calls as outlined below.

Inspecting In-Game Items

By default, the Inspect Menu shows the same information as the “Currently Wearing” tab of a player’s profile page. This is not necessarily the same as their in-game appearance, since you may have opted to enforce/equip specific avatar items in your game.

To reveal exactly what a player has equipped in game, you can:

  1. Call GuiService/SetInspectMenuEnabled|GuiService:SetInspectMenuEnabled() with a value of false to make the default profile-based Inspect Menu inaccessible.

  2. Call GuiService/InspectPlayerFromHumanoidDescription|GuiService:InspectPlayerFromHumanoidDescription(), providing a HumanoidDescription which represents what the player is wearing, along with the unique player name to inspect.

local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer

-- Make profile-based Inspect Menu inaccessible

local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
if humanoid then
	local humanoidDescription = humanoid:GetAppliedDescription()
	GuiService:InspectPlayerFromHumanoidDescription(humanoidDescription, player.Name)

Inspecting Other Players

The Inspect Menu can also be used to inspect players who aren’t in the current game. This is done through GuiService/InspectPlayerFromUserId|GuiService:InspectPlayerFromUserId() which accepts the Player/UserId|UserId of any player.

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

-- Get user ID by player name
local success, userId = pcall(function()
	return Players:GetUserIdFromNameAsync("IgnisRBX")

if success then
  • avatar
  • inspect
  • accessory
  • buy