It looks like you forgot the NOT operator when checking if the PlayerPortalEvent was canceled or not. Unless if you intended it to be backwards.