# Studio Parameter Trigger Script

**URL:** https://qa.fmod.com/t/studio-parameter-trigger-script/14560
**Category:** Unity
**Created:** [April 11, 2019, 4:11pm UTC](https://qa.fmod.com/t/studio-parameter-trigger-script/14560 "2019-04-11T16:11:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jarett726](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jarett726](https://qa.fmod.com/u/Jarett726)
#### Post date: [April 11, 2019, 4:11pm UTC](https://qa.fmod.com/t/studio-parameter-trigger-script/14560/1 "2019-04-11T16:11:16Z")

</div>

Don’t know coding too well just starting with it so forgive if the issue is simple or something I’m missing. I’m running through the base Viking Village tutorial and the standard FMOD Studio Parameter Trigger script is giving me an IndexOutOfRange error when trying to create the music trigger zones. I’m not sure if this is something I need to change on the FMOD side, the script is out of date, or if nobody uses the standard ones and I’ll have to figure out how to make my own parameter trigger script.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [April 16, 2019, 5:35am UTC](https://qa.fmod.com/t/studio-parameter-trigger-script/14560/2 "2019-04-16T05:35:34Z")

</div>

Are you able to share the entire error message from the Unity console?

---

<div class="post-metadata">

### Author: ![Jarett726](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jarett726](https://qa.fmod.com/u/Jarett726)
#### Post date: [April 16, 2019, 5:55am UTC](https://qa.fmod.com/t/studio-parameter-trigger-script/14560/3 "2019-04-16T05:55:38Z")

</div>

Here is the message:

IndexOutOfRangeException: Index was outside the bounds of the array.  
FMODUnity.StudioParameterTrigger.Awake () (at Assets/Plugins/FMOD/src/Runtime/StudioParameterTrigger.cs:33

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [April 17, 2019, 1:26am UTC](https://qa.fmod.com/t/studio-parameter-trigger-script/14560/4 "2019-04-17T01:26:37Z")

</div>

What version of FMOD are you using?

I believe I have found the issue and this should only occur in 2.0.
