PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

InspectPlayerFromUserId

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.

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 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 HumanoidDescription object

Parameters

Name Type Default Description

The Player/UserId|UserId of the player to inspect

Returns

Return Type Summary

No return


Code Samples


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)