Discuss Scratch

The_New_Style
Scratcher
37 posts

How to make an anti-cheat system

Hey everyone today i will show you something revolutionary, an anti-hack/cheat system in your projects for unlockables. so here is what you got to do. first, make two variables, name one as unlock (insert here) name the other one something random. I will name them unlock jim and pizza. Add these blocks.

whenclickedsetunlock jimto0setpizzato0


Then, we will make it so if the variable “unlock jim” is equal to one you will unlock jim.


whenclickedforeverifunlockjim=1thenbroadcastunlock jim

But, since this is easily “hackable” you must make this script to make hard to hack.

whenclickedforeverifnotpizza=unlockjimthenstopall

After, add what you do to unlock jim and make this script. For this example, I made it so you can unlock jim by pressing the space bar. (Both variables must both be set to 1 at the same time!)

whenclickedforeverifkeyspacepressed?thensetpizzato1setunlock jimto1stopThis Script

Finally, add the “when i recieve” block then below it add what your unlockable does! For this example, it changes a costume of a sprite.

whenIreceiveunlock jimswitchcostumetocostume80087
The_New_Style
Scratcher
37 posts

How to make an anti-cheat system

The_New_Style wrote:

Hey everyone today i will show you something revolutionary, an anti-hack/cheat system in your projects for unlockables. so here is what you got to do. first, make two variables, name one as unlock (insert here) name the other one something random. I will name them unlock jim and pizza. Add these blocks.

whenclickedsetunlock jimto0setpizzato0


Then, we will make it so if the variable “unlock jim” is equal to one you will unlock jim.


whenclickedforeverifunlockjim=1thenbroadcastunlock jim

But, since this is easily “hackable” you must make this script to make hard to hack.

whenclickedforeverifnotpizza=unlockjimthenstopall

After, add what you do to unlock jim and make this script. For this example, I made it so you can unlock jim by pressing the space bar. (Both variables must both be set to 1 at the same time!)

whenclickedforeverifkeyspacepressed?thensetpizzato1setunlock jimto1stopThis Script

Finally, add the “when i recieve” block then below it add what your unlockable does! For this example, it changes a costume of a sprite.

whenIreceiveunlock jimswitchcostumetocostume80087


You have to give credit or i will report you! I hope you enjoyed this tutorial!
hai4a5
Scratcher
49 posts

How to make an anti-cheat system

who need this? i can stil instant \\hack your system
trucksarenoisy
Scratcher
100+ posts

How to make an anti-cheat system

You can edit it anyway if there is has an anti cheat or not, You can disable it really easy.

It's really pointless
Programmer-CPR-
Scratcher
2 posts

How to make an anti-cheat system

привет,как сделать анти-чит
The_New_Style
Scratcher
37 posts

How to make an anti-cheat system

hai4a5 wrote:

who need this? i can stil instant \\hack your system
The idea is to hide the “anticheat” code blocks. Its defo not foolproof but it is easy to code and it makes it a little more inconvient to hack. You could even bring it farther and add cloud lists to stop the project and “ban” people via username.
The_New_Style
Scratcher
37 posts

How to make an anti-cheat system

trucksarenoisy wrote:

You can edit it anyway if there is has an anti cheat or not, You can disable it really easy.

It's really pointless
The idea is to hide the “anticheat” code blocks. Its defo not foolproof but it is easy to code and it makes it a little more inconvient to hack. You could even bring it farther and add cloud lists to stop the project and “ban” people via username.
The_New_Style
Scratcher
37 posts

How to make an anti-cheat system

Programmer-CPR- wrote:

привет,как сделать анти-чит
мне жаль. Я не говорю по-русски. Переведите свои слова на английский.
Wolf_LexXX
Scratcher
49 posts

How to make an anti-cheat system

:
TheRealJbobo
Scratcher
1 post

How to make an anti-cheat system

The_New_Style wrote:

trucksarenoisy wrote:

You can edit it anyway if there is has an anti cheat or not, You can disable it really easy.

It's really pointless
The idea is to hide the “anticheat” code blocks. Its defo not foolproof but it is easy to code and it makes it a little more inconvient to hack. You could even bring it farther and add cloud lists to stop the project and “ban” people via username.

Powered by DjangoBB