InspectPlayerFromHumanoidDescription
This function allows a developer to bring up the Inspect menu showing the assets listed in this HumanoidDescription
object.
This allows further customization with what is shown in the Inspect Menu when players inspect other players in your game. If your game modifies what the players are wearing, you can instead give the Inspect Menu a HumanoidDescription object that represents what a player is wearing and those items will be shown. You should pass a name as well to represent the name of the player that will be inspected.
See also
- 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 functionalityGuiService/InspectPlayerFromUserId
, allows the Inspect Menu to appear showing the user that has the givenPlayer/UserId|UserId
. This is especially useful when you want to inspect players who aren’t in the current game
Parameters
Name | Type | Default | Description |
---|---|---|---|
|
A |
||
|
The name of the player being Inspected to show in the Inspect menu |
Returns
Return Type | Summary |
---|---|
No return |
Code Samples
Opening an Inspect Menu with a HumanoidDescription
This example demonstrates how to show an Inspect Menu containing two items (Midnight Antlers and Mid-Summer Starry Wings), for a player named MyPlayer
using GuiService:InspectPlayerFromHumanoidDescription
.