Anti-Exploit paired with Obby Game Teleportation

Hello!

I am in the last stages of making an Obby game in Roblox. I’m trying to work on an anti-cheat so that exploiters cannot simply teleport to each stage locally or fly around the map. I understand there are simple anti-exploits for teleportation and fly, but there are a few problems. For starters, whenever the character respawns, they are loaded at the position of their stage. This is flagged as teleportation. Additionally, I have a “teleport to spawn” button, which can also be flagged as teleportation whenever pressed. What would be the best way to get around this?

I have searched a lot of anti-exploit Devforum posts, along with helpful Youtube videos. However, I am not the most advanced scripter, so I would appreciate any assistance with the situation. Thank you all for your help and consideration!

1 Like

You need to modify the script to ignore teleports to an authorized location. So your game components which cause the player to teleport must tell the script that they are about to teleport and not to kick them.

2 Likes

This REALLY depends on how the anticheat works. I know a lot of them repeatedly check the distance between the player’s current position and their last valid position, so I recommend seeing if there’s a way to set the player’s last valid position in the anticheat to wherever you’re teleporting them to, in addition to actually setting the player’s location. My anticheat has a built in function that does exactly that; I really recommend adding it to yours.

1 Like

This makes a little more sense. I appreciate your help. Thank you!

1 Like