![]() Before we wait, we will store the current time in a local variable then, after the wait, we will find the players position again, then will calculate the total time taken. We can use a really simple equation to measure the maximum distance the player can travel within a given time (Distance = Speed * Time).įirst, we find the players position then we wait (I’ve used RenderStepped:Wait()) since it seems to be the most accurate. ![]() You can check if a player has teleported by measuring the total distance they have moved by within a given time. ![]() If a player attempts to change their speed, it will be changed back to the speed allowed by the developer, if you want to change a players speed, there is a function that can be used which will be explained later Sulphur:EnableHumanoidSpeedCheck(AuthenticationKey) We can check if a player has changed their speed, we could check on the server but bear in mind, this is a clientsided anticheat and it’s made to reduce strain on the server (I might work on a server sided anticheat in the future) We’ll call this from 2 scripts, if we had one script checking if a script has become disabled, it could be easily disabled without triggering the checkĬhecking if a player has changed their speed Sulphur:ScriptRemovedCheck(AuthenticationKey, ) We will be using our Authentication Key to verify that we are calling the function through an authorized script We don’t want an exploiter to disable scripts which use Sulphur using the module would be futile as a result. This will return a key which will be used to authenticate requests, each script will be provided a unique key Local AuthenticationKey = Sulphur:Authenticate() The module should contain a Child called Scripts which is an IntValue, change the value of Scripts to the number of scripts which will use Sulphur (I recommend placing scripts which will use Sulphur in ReplicatedFirst since we don’t want an exploiter to be given a key & I don’t recommend placing the module in a folder which will be explained later). Sulphur was designed with security in mind, it uses an authentication key which is generated to authenticate whether a function was called from a script which has been authorized or else, the called function won’t run.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |