The Meaning of Life, the Universe, and Everything.
Try removing the tripwire and type this on the command block. /tp @p[r=0] X Y Z. So R means radius. Think of it as how many blocks away from the command. If you place a command and do r=1 it will detect the person who is standing 1 block from the command. if you put r=5. It will detect 5 blocks from the command.
Example: /tp @p[r=5] X Y Z (This means that if the person is 5 blocks closer to the command, it will teleport them to X Y Z) MAKE SURE TO SET YOUR COMMAND ON REPEAT AND ALWAYS ACTIVE! Before you put on repeat and always active, make sure you're doing it correctly or else there could be consequences such as an unstable loop of teleporting. I hope this helps. If you need anything else, message me.