# Error in Chapter 5 on page 126

**URL:** <https://forums.kodeco.com/t/error-in-chapter-5-on-page-126/21482>\
**Category:** Unity Games by Tutorials\
**Created:** [October 20, 2016, 7:59pm UTC](https://forums.kodeco.com/t/error-in-chapter-5-on-page-126/21482 "2016-10-20T19:59:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoffa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/geoffa/32/80510_2.png) [@geoffa](https://forums.kodeco.com/u/geoffa)\
**Post date:** [October 20, 2016, 7:59pm UTC](https://forums.kodeco.com/t/error-in-chapter-5-on-page-126/21482/1 "2016-10-20T19:59:02Z")

</div>

In Chapter 5, page 126, section “Spawning the aliens”, it says the first line to add in Update() is:  
alienScript.target = player.transform;

I think this should instead be:  
currentSpawnTime += Time.deltaTime;

---

<div class="post-metadata">

**Author:** ![ghostmoki](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ghostmoki/32/89849_2.png) [@ghostmoki](https://forums.kodeco.com/u/ghostmoki)\
**Post date:** [October 21, 2016, 12:38pm UTC](https://forums.kodeco.com/t/error-in-chapter-5-on-page-126/21482/2 "2016-10-21T12:38:10Z")

</div>

I just came across this error too… Clearly the original line isn’t right, and what you’ve suggested makes a lot more sense.

Thanks!

---

<div class="post-metadata">

**Author:** ![jookes](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jookes/32/83414_2.png) [@jookes](https://forums.kodeco.com/u/jookes)\
**Post date:** [October 24, 2016, 7:58pm UTC](https://forums.kodeco.com/t/error-in-chapter-5-on-page-126/21482/3 "2016-10-24T19:58:03Z")

</div>

If you look at the final GameManager.cs script the suggestion @geoffa makes is correct.

---

<div class="post-metadata">

**Author:** ![vegetarianzombie](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vegetarianzombie/32/94022_2.png) [@vegetarianzombie](https://forums.kodeco.com/u/vegetarianzombie)\
**Post date:** [November 7, 2016, 3:13pm UTC](https://forums.kodeco.com/t/error-in-chapter-5-on-page-126/21482/4 "2016-11-07T15:13:36Z")

</div>

Just an FYI … this is now fixed in the final version. Thanks to everyone for the heads up!
