This invocation calls a function that has the 'no_rollback' effect, which is not allowed by its context.

I currenty am having an error with verse that is giving me the “This invocation calls a function that has the ‘no_rollback’ effect, which is not allowed by its context.” error. This specifically occurs with the line “MOVETIME(Agent, TeamOneEmpty1, TeamOneCinematic1, TeamOneSpeaker1)” I want my code to check the team the player is on to determine what object should be moved to them.
MoveToTeam.verse (4.4 KB)