# Verse error in "Create a custom keycard item" tutorial

**URL:** <https://forums.unrealengine.com/t/verse-error-in-create-a-custom-keycard-item-tutorial/2695806>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 29, 2026, 4:37pm UTC](https://forums.unrealengine.com/t/verse-error-in-create-a-custom-keycard-item-tutorial/2695806 "2026-01-29T16:37:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gsax8880](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gsax8880](https://forums.unrealengine.com/u/Gsax8880)\
**Post date:** [January 29, 2026, 4:37pm UTC](https://forums.unrealengine.com/t/verse-error-in-create-a-custom-keycard-item-tutorial/2695806/1 "2026-01-29T16:37:21Z")

</div>

In this tutorial - [https://dev.epicgames.com/documentation/en-us/fortnite/create-a-custom-keycard-item-in-fortnite-](https://dev.epicgames.com/documentation/en-us/fortnite/create-a-custom-keycard-item-in-fortnite)

When I get to the portion where I am creating a verse script for the custom keycard, I get the following error from the compiler.

keycard\_gameplay\_device.verse(51,32, 51,52) : Script error 3506: Unknown member `FindComponentsOfType` in `inventory_component`.

It’s referring to the following line of code….

if(TargetInventory.FindComponentsOfType[keycard\_item\_component].Length \> 0):

Has FindComponentsOfType[] been deprecated? Is there a better way to go about finding that component in the inventory?

The full code snippet is available in the tutorial link.

Thank you,

L
