Mysterious script timeout in swordfight tourney event script (Script timeout: exhausted allowed execution time)

Edit: Problem solved. Thanks for the help, everyone. :smiley:

1 Like

If you do not wait inside a infinite loop you will exhaust execution time. Your code must be missing the if playerNumber == #swordFightPlayerList check and potentially the last if statement if tostring(participant.Name) == swordFightWinner then