This function allows the Inspect Menu to appear showing the user that has the given
Player/UserId|UserId. This is especially useful when you want to inspect players who aren’t in the current game.
This shows the same information as the “Currently Wearing” tab on the specified user’s profile.
- Avatar Inspect Menu, an article providing a more detailed explanation of the Inspect and Buy feature and how it works
GuiService:SetInspectMenuEnabled, allows developers to enable or disable default Inspect and Buy functionality. This is especially useful when what is being worn on a player’s avatar on the Roblox platform is not necessarily the same as their in-game appearance
GuiService/InspectPlayerFromHumanoidDescription, allows a developer to bring up the Inspect menu showing the assets listed in this
Opening the Inspect Menu for a UserId
The code sample below demonstrates how to use
GuiService/InspectPlayerFromUserId to open the
Inspect Menu for the Roblox user with the id 772462.
local GuiService = game:GetService("GuiService") GuiService:InspectPlayerFromUserId(772462)