# Jelp meee plsss

**URL:** <https://forum.makecode.com/t/jelp-meee-plsss/22333>\
**Category:** Help\
**Tags:** game\
**Created:** [September 8, 2023, 4:55pm UTC](https://forum.makecode.com/t/jelp-meee-plsss/22333 "2023-09-08T16:55:41Z")\
**Posts on this page:** 4\
**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:** [September 8, 2023, 4:55pm UTC](https://forum.makecode.com/t/jelp-meee-plsss/22333/1 "2023-09-08T16:55:41Z")

</div>

Help pls smth went wrong and idk how to fix it keeps sayign NaN and undenfined not materr what i do if anyone can fix it plss

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

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [September 8, 2023, 7:08pm UTC](https://forum.makecode.com/t/jelp-meee-plsss/22333/2 "2023-09-08T19:08:44Z")

</div>

It’s happening here when the game first loads:  
 ![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/55bdebe124b8437ddf2f62b1de5e8cb136418dd1.png)

I’m guessing that you don’t have the settings initialized at the beginning of the game, so they’re coming through as undefined. You need to do something similar to your “Savesetting” function right after you declare all of your variables.

![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7b231cec4636ba9e555a7b82c9d6bde7c3b4cbbc.png)

Give that a shot and see what happens!

---

<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:** [September 9, 2023, 5:36pm UTC](https://forum.makecode.com/t/jelp-meee-plsss/22333/4 "2023-09-09T17:36:53Z")

</div>

I tryed what u did kikivsIT but know when I reset it sets my coind and stats to 0

---

<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:** [September 9, 2023, 5:36pm UTC](https://forum.makecode.com/t/jelp-meee-plsss/22333/5 "2023-09-09T17:36:59Z")

</div>

fixed it I needed to put it at the end, (your both lifesavers!) next problem do u knwo how to make it have my sword on respawn of I have already talked to the mayor?
