Touched vs ClickDetector

I’m currently working on a game where it requires the players to complete 7 parkour stages. Each stage ends with a “key”. In order for the player to get the key, they would either click it or touch it. Which one is harder to exploit? I need to make this secure in order to keep the gameplay fair.

Also, sorry if I posted in the wrong topic.

Thank you.

Both are equally easy to exploit.
In order to mitigate that, you can have a magnitude check on the server, so if the player clicks/touches the part while being i. e. 300m away from it, reject their input.

You can also implement a checkpoint-like system in each stage, where it increments a number as the player progresses and reaches the checkpoints, so that they cannot simply teleport to the end. The checkpoints can be invisible if you wish, just make sure the player can’t miss them.

5 Likes

I think you should have a combination of both: a key in a box. Click the box and it opens and gets destroyed, and touch it to receive the key. I also add some aesthetics to your game.