I need help with how to detect a property inside of CharacterMesh

I need help with detecting a property inside of a CharacterMesh. I’ve tried this and it doesn’t seem to work, any help would be greatly appreciated!

if clone:FindFirstChildOfClass("CharacterMesh") then
    local torso = clone:FindFirstChildOfClass("CharacterMesh").BodyPart.Torso
    if torso then
        print("yo")
    end
end

For this, you have to check the EnumItem as this Property only Accepts Enum Values, which in this case its Enum.BodyPart.Torso

if characterMesh.BodyPart == Enum.BodyPart.Torso then
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.