# Problem with textsprites and setting pls help

**URL:** <https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452>\
**Category:** Help\
**Created:** [July 24, 2023, 8:44pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452 "2023-07-24T20:44:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 24, 2023, 8:44pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/1 "2023-07-24T20:44:41Z")

</div>

for my new game realm of legdends I ran into this

 ![Screenshot 2023-07-21 at 2.19.13 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/bb417d9d51cfa86195162b68442dc143537419ea.jpeg)

how do I fix “undentifeid”

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [July 24, 2023, 11:45pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/2 "2023-07-24T23:45:56Z")

</div>

can you send a link please

---

<div class="post-metadata">

**Author:** ![jnegative](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jnegative/32/10173_2.png) [@jnegative](https://forum.makecode.com/u/jnegative)\
**Post date:** [July 24, 2023, 11:46pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/3 "2023-07-24T23:46:36Z")

</div>

That means the text has been set to an undefined value. Can you post your code?

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 26, 2023, 11:02pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/4 "2023-07-26T23:02:29Z")

</div>

Sorry I forgot about teh libk

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [July 26, 2023, 11:20pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/5 "2023-07-26T23:20:15Z")

</div>

> **[realm of legends OFFCIAL](https://arcade.makecode.com/S95207-28913-45949-87061)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Sry I couldn’t do sooner

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 27, 2023, 4:50pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/6 "2023-07-27T16:50:01Z")

</div>

@Rubberducky271 in this part of your code:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4dbc8b72e58c12920c63ec9a4c2c8c82a2bbf946.png)

It looks like you’re reading settings without checking to make sure they exist first. You should always check the “setting with name \_\_\_\_ exists” block before reading a setting or else it might return undefined.

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [August 4, 2023, 4:52pm UTC](https://forum.makecode.com/t/problem-with-textsprites-and-setting-pls-help/21452/7 "2023-08-04T16:52:57Z")

</div>

fiddlestick I am now sticking to copy paste thanks!
