IndexOutOfRangeException: Array index is out of range. PLS HELP

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName= “TextAdventure/InputActions/Go”)]
public class Go : InputAction
{
public override void RespondToInput (GameController controller, string[ ] separatedInputWords)
{
controller.roomNavigation.AttemptToChangeRooms (separatedInputWords [1]); <----- There is error
}
}

First of all code tags. Using code tags properly

Secondly, this script on its own is not nearly enough to help us help you. We have no way of knowing how “RespondToInput” is called, or what that parameter is, or where it comes from. Solving this problem would require knowledge of whatever “InputAction” is.

Simply put. You are trying to access index 1 and your array either has 0 or only 1 item in it. Since index 1 is the second item. But as @StarManta said. There isn’t enough info here to really help you.

Sorry for posting this rookie thread. I reset my project and now i haven’t this problem, but thanks anyway!