# Help with Ghost Replay

**URL:** https://forum.makecode.com/t/help-with-ghost-replay/44386
**Category:** Help
**Created:** [June 7, 2026, 3:21am UTC](https://forum.makecode.com/t/help-with-ghost-replay/44386 "2026-06-07T03:21:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![HotPotato677](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hotpotato677/32/31755_2.png) [@HotPotato677](https://forum.makecode.com/u/HotPotato677)
#### Post date: [June 7, 2026, 3:21am UTC](https://forum.makecode.com/t/help-with-ghost-replay/44386/1 "2026-06-07T03:21:59Z")

</div>

Hey guys so im back and i need help with this game  
so my game is a speedrunning parkour game and i wanted to add ghost replay to it, but turns out its really hard so if you guys could help then thatd be nice

> **[JumprDash Ghostplay test](https://arcade.makecode.com/03278-23416-70118-54289)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

thanks

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [June 7, 2026, 6:18pm UTC](https://forum.makecode.com/t/help-with-ghost-replay/44386/2 "2026-06-07T18:18:31Z")

</div>

Your code of recording the player for ghost playback is in a forever block.  
Something to know about forever blocks is that they only begin running **AFTER** the code in the on start block has finished running.  
Because the while loop in the on start block never ends, the code in general never ends and the forever code never starts.

To fix this you can use the timer extension and put the while loop in a “separately do” block.

 ![code](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/a/aa3ae6d38b564ab7b7f9d9dfbec7befb5d5c16c5.png)
