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

SetInspectMenuEnabled

This function allows developers to enable or disable default Inspect and Buy functionality. This is useful when you want to disable the feature in your game, entirely or during certain parts of your game (such as a cutscene). The feature is enabled by default.

The code sample below demonstrates how to disable the Inspect Menu for your game:

local GuiService = game:GetService("GuiService")
GuiService:SetInspectMenuEnabled(false)

See also

  • Avatar Inspect Menu, an article providing a more detailed explanation of the Inspect and Buy feature and how it works
  • GuiService/InspectPlayerFromHumanoidDescription, allows a developer to bring up the Inspect menu showing the assets listed in this HumanoidDescription object. 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/InspectPlayerFromUserId, 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

Parameters

Name Type Default Description

A boolean indicating whether to enable or disable the Inspect Menu feature

Returns

Return Type Summary

No return