# New to coding, where am I going wrong? I've basically copiedthe Team Eliminations Game Mode tutorial word for word...

**URL:** <https://forums.unrealengine.com/t/new-to-coding-where-am-i-going-wrong-ive-basically-copiedthe-team-eliminations-game-mode-tutorial-word-for-word/1870946>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 24, 2024, 2:37pm UTC](https://forums.unrealengine.com/t/new-to-coding-where-am-i-going-wrong-ive-basically-copiedthe-team-eliminations-game-mode-tutorial-word-for-word/1870946 "2024-05-24T14:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uDylan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uDylan](https://forums.unrealengine.com/u/uDylan)\
**Post date:** [May 24, 2024, 2:37pm UTC](https://forums.unrealengine.com/t/new-to-coding-where-am-i-going-wrong-ive-basically-copiedthe-team-eliminations-game-mode-tutorial-word-for-word/1870946/1 "2024-05-24T14:37:04Z")

</div>

![● elimination_game_device.verse - PrestigeGunGame2 (Workspace) - Visual Studio Code 5_24_2024 1_11_34 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/8/6c858b7122683829088aceb89dd4965f12dc6026.png)

---

<div class="post-metadata">

**Author:** ![TelesphorosGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/telesphorosgames/32/924355_2.png) [@TelesphorosGames](https://forums.unrealengine.com/u/TelesphorosGames)\
**Post date:** [May 24, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/new-to-coding-where-am-i-going-wrong-ive-basically-copiedthe-team-eliminations-game-mode-tutorial-word-for-word/1870946/2 "2024-05-24T15:48:17Z")

</div>

I think you copied it too many times 😅 you have a function called OnBegin() that you are defining twice, and once in the wrong spot. the top one needs to be deleted and the bottom one needs to be indented outwards so that it is indented at the same place the other one was. You can do that by highlighting all of the OnBegin function (everything from ‘OnBegin’ to ‘.Subscribe(OnPlayerSpawn)’ and clicking Shift+tab to shift the text left.

Coding can be a lot for sure and verse is very unique as well. One thing about verse is it depends on where your indents are, the indents are what decide the scope of your code.

Looks like you’ve also got OnPlayerSpawn() defined twice. You’ll want to double check the lesson code to verify the steps you doubled up on 😃

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 23, 2024, 3:49pm UTC](https://forums.unrealengine.com/t/new-to-coding-where-am-i-going-wrong-ive-basically-copiedthe-team-eliminations-game-mode-tutorial-word-for-word/1870946/3 "2024-06-23T15:49:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
