Script with teleport triggering twice when entering a region

Script that bugged for me goes like this:

triggers: when a unit enters a region
if: (last triggering region) = (score1)
then do: teleport (last triggering unit) to (random position in spawn) without interpolation
set player attribute score of (owner of (last triggering unit) as (score of (owner of (last triggering unit) + (1) * (rebirth of (owner of (last triggering unit)

The issue that occurs for me is that I gain the score twice instead of once. The issue occurs more often with lag for me. The issue occurred even without the rebirths. Iā€™m not sure if this is a bug so let me know as I am a beginner at making games on modd.io.

1 Like

yeah it might possibly an error