To disable the avatar inspect menu on Roblox PC, use GuiService:SetInspectMenuEnabled(false) in your game’s scripts; Roblox’s documentation says the menu is enabled by default and this is the way to turn it off in an experience.

What it does

This disables the default profile-based inspect menu that lets players view another user’s avatar, try on items, and make purchases.

Where to put it

Add it in a server or local script that runs when your experience starts, depending on how you’re managing UI and player interaction.

Example

lua

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

Roblox also documents that you can instead inspect a player’s current in- experience appearance or a specific user ID if you want a custom flow.

Important note

If you meant the avatar editor or a facial animation setting on your own character, that’s a different feature from the inspect menu, and the steps are not the same.

TL;DR

For a Roblox PC experience, disabling avatar inspection is done with GuiService:SetInspectMenuEnabled(false).