I’m currently making a game where people aren’t allowed to walk at all, but exploiters can still teleport around, and that is a problem. How can I prevent that from happening?
Side note: I want to add a shop where you can buy time to walk, so it has to be able to turn off and on somehow
Anyway, help is appreciated!
You could have the humanoid with a state such as walkingEnabled which dictates whether a player is able to move or not. With this, you can do sanity checks on the server every few seconds to see if they’ve moved whilst not being allowed to and punish accordingly. If they are allowed to walk, draw an imaginary circle around the player for the maximum distance they’re allowed to walk. If they somehow teleport or leave this circle, you’ll know they’re exploiting. You can also check the distance between the humanoidRootParts in the system mentioned before.