Detecting body parts types

Hello, I have no idea how I can detect if player avatar is blocky :thinking:

Blocky avatar (no body parts selected in avatar editor):
image

Not blocky avatar (custom body parts):
image

I know that it can be different for R6 and R15. I need this expecially for R15. Head is not important but it would be also nice to know how to detect it.

Why I need it? Mainly for animations to be precised.

Maybe write a script that checks the character’s body part’s MeshId.

if Character.WhateverBodyPart.MeshId == BlockyCharacterMeshId then
CharacterType = “Blocky”
else
CharacterType = “Fancy”
end
1 Like

My guess that there’s more body parts in the custom body parts guy? If so you could have a script that checked if a certain block/part was inside the character?

It would go something like this:

local Players = game:GetService("Players")

local char = Players.playername.Character
local charChildren = char:GetChildren()

local characterType = "Bloxy" or "Fancy" -- You could also have one of these where you display the Type in a variable

for i, v in pairs(charChildren) do -- Will go through every part under the character
	
	if v.Name == "Part that is only spesific to your character" then -- If the name is the one you specified
		print("Character is the fancy one!")
	else
		print("Character is the blocky one")
	end
end

That’s it. Thank you!

30 chs

I think every custom body has a same amount of body parts and there’s only different MeshIds. Thanks for helping anyway!