# What error is this?

**URL:** https://forum.makecode.com/t/what-error-is-this/27350
**Category:** Help
**Created:** [February 27, 2024, 9:40pm UTC](https://forum.makecode.com/t/what-error-is-this/27350 "2024-02-27T21:40:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)
#### Post date: [February 27, 2024, 9:40pm UTC](https://forum.makecode.com/t/what-error-is-this/27350/1 "2024-02-27T21:40:30Z")

</div>

> **[Penalties](https://arcade.makecode.com/S79582-55863-85909-93198)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

 ![Screenshot 2024-02-27 at 9.05.42 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/aac4378a8f21ae0b9905b4f18b02d385d4a20eee.png)  
When I click on the menu, it gives me a split second and then this error. I’ve seen many different errors but this is the first time i’ve ever seen this. Help!  
@MakeCode 🥺

---

<div class="post-metadata">

### Author: ![robotosaurus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robotosaurus/32/19294_2.png) [@robotosaurus](https://forum.makecode.com/u/robotosaurus)
#### Post date: [February 28, 2024, 2:40am UTC](https://forum.makecode.com/t/what-error-is-this/27350/2 "2024-02-28T02:40:33Z")

</div>

No reason for this error.  
I looked at the code and nothing seems wrong.

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [February 28, 2024, 10:56pm UTC](https://forum.makecode.com/t/what-error-is-this/27350/3 "2024-02-28T22:56:35Z")

</div>

It looks like it is caused by the Pause 500 in your On Game Update code. I think there must be a bug with waiting while the menu is open?! So weird!! Removing the wait makes the bug go away, though I have no idea what could be causing this or why the error message says that. It says it is an error with differentiating null/undefined value, so maybe there is a problem where it… can’t tell the difference between the two?? The error message doesn’t really make much sense.

---

<div class="post-metadata">

### Author: ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)
#### Post date: [March 1, 2024, 5:22pm UTC](https://forum.makecode.com/t/what-error-is-this/27350/4 "2024-03-01T17:22:13Z")

</div>

any tips on how I could make this? The status bar is to show the power of the shot. I want the ball to follow the aimer. Seems like an issue
