
If you don't know what a thread is, you can google it, but basically a thread is an individual independent task on your CPU. You will learn about the rest of the functions you can overwrite down below! Threads
#CRAB GAME LOBBY CODES UPDATE#
In order for your script to work in the first place, you will need to overwrite Update or/and OnEnable.

You already learned about three of those which are Update, OnEnable and OnDisable. You can overwrite a few different functions which will get executed in different threads and will have different purposes. If the user is not in-game, yet he decides to toggle the script and the state changed since last time the script was executed in-game, OnEnable or OnDisable will still get called accordingly when the user joins back in a game. Remember that they will get called only if the user is in-game. Those two functions will get executed on the main game thread. OnDisable will get executed once the script is turned off, simple. If you chose the Toggle script, you will OnEnable and OnDisable functions, as you could guess, whatever code you put in the OnEnable function, it will get executed once the script is turned on. Whatever code you put in that function, it will get executed every game tick on the main game thread when the user is in-game, simple enough. If you chose to make Loop script, you should see an Update function.
#CRAB GAME LOBBY CODES HOW TO#
If you want a combination of these, you can of course do it, but you will learn how to do that later on in this tutorial. A Toggle script will only do something when it gets toggled. A Loop script will run every tick the script is turned on.

The Scripts window should appear, now click on + New Script and choose a template for the script. To get started, open up the Menu in Crab Game, click on the Scripts button in the bottom right. Time to read this part carefully: ~30 minutes+ I don't recommend running unverified scripts unless you can check the code yourself because they could be malicious!)Ĭreate Your OWN Scripts! (Part 1 - Introduction)įirst of all, learn the basics of LUA, it is one of the simplest programming language so it shouldn't be hard! Also make sure to read the ENTIRE TUTORIAL if you want to make an actually useful script!! The documentation is more than enough, you just have to read!!ītw, anyone who makes at least 1 useful script and shares it on the discord server will get the Script Maker role )

You should see the name of the file on the right, to enable the script click on the checkbox near the name.Click on Open Folder and select the folder that you put the script in.Click on Scripts in the bottom right corner of the Menu, a window should appear.
#CRAB GAME LOBBY CODES MOD#
Open up Crab Game and inject the 1hAck Mod Menu (v3.2 or higher only).Put it in a folder that you will remember for the next 5 minutes.Lua Scripts for the free 1hAck Crab Game Mod Menu and a guide on how to make your own! How to Load Scripts
