I don’t understand the no rollback error or how to fix it here please help
CompareScore() : void =
if(Player1Score < Nominee2Score):
Print("Player 1 has been eliminated")
if:
Team2 := GetPlayspace().GetTeamCollection().GetTeams()[2]
if(TeamArray := GetPlayspace().GetTeamCollection().GetAgents[Team2]):
PlayerOne := TeamArray[0]
EliminationSequence(PlayerOne) #trying to use a function that has no rollback error
EliminationSequence(Agent : agent)<suspends> : void =
EliminationTeleport.Teleport(Agent)
EliminationLS.Play()
Sleep(4.0)
PhaseTransition.Play()
TeamSwitcher.ChangeTeam(Agent)
BetweenRoundsTimer.Start()