Based on this tutorial page:
Trying to run the tutorial code sample as a LocalScript in PlayerGui:
wait(2) --I added this so my humanoid exists when the script gets run
local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
-- Make profile-based Inspect Menu inaccessible
GuiService:SetInspectMenuEnabled(false)
local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
if humanoid then
local humanoidDescription = humanoid:GetAppliedDescription()
GuiService:InspectPlayerFromHumanoidDescription(humanoidDescription, player.Name)
end
This error prints to the console:
CoreGui.RobloxGui.Modules.InspectAndBuy.Components.AvatarHeadShot:22: invalid argument #4 to 'format' (number expected, got string)
Script 'CoreGui.RobloxGui.Modules.InspectAndBuy.Components.AvatarHeadShot', Line 22 - function render
This error occurs 100% of the time and seems to be a problem with the Avatar Inspect Menu Roact code.
GuiService:InspectPlayerFromHumanoidDescription() is completely broken.