Huge update to BlockLua!
I would like to announce the release of a really big update.
This update includes…
- New blocks
- New features
- Design changes
- … and a completely revamped engine
Please take a few minutes to read what new stuff the plugin has to offer! I promise, it’s cool.
Let’s dive into it.
The new engine
Before this update, BlockLua saved your scripts by cloning all of your coding area into server storage, and loaded it by cloning it back into the UI.
That worked fine… for a while. But, there are multiple problems with this. Most importantly: Cloning is slow AND breaks undo/redo (aka. unstable)
To make things clear: Your old scripts will be converted to the new format upon opening them for the first time with the new version of the plugin. This is not reversible. I tested it out many times with all kinds of old scripts, I haven’t experienced any issues. If you are unsure about this, create a backup of your game. If you experience ANY bugs, please report to me ASAP. Thank you.
So, I transitioned BlockLua’s engine to use a whole new format:
The actual script:
Now, BlockLua creates a module script for every top-most block in your script. All the connected blocks will be stored in a JSON format as a string, in these module scripts.
Why is this so great?
- Reduces the number of objects in your game by a LOT, leading to faster loading times for your game. Just looking at the screenshot, you can see that all these blocks are being stored in a single module script instead of being stored in your server storage all the time.
- Allows for proper undo/redo. You can now CTRL-Z just like you would with a normal script. Showcase (the flickering is just a visual glitch, I might find a workaround later):

- FAST saving. Saving takes milliseconds now. So, autosave is BACK! Now, after every block movement, your script will automatically save itself (using the Save button is still advised, but you should be just fine without it)
- Script sharing (for the future). This is NOT a feature yet. But you will be able to get the JSON for your script, and share it with others, or just save it on your computer as a backup file.
The new blocks
- when this script starts - each runs on a seperate thread, unlike just putting blocks into your script. Also great for organizing and readability.
- send message to server - works together with the “got message from client” block. Aims to make client-server communication easier.
- got message from client - works together with the “send message to server” block. Aims to make client-server communication easier, it creates a remote event for you behind the doors, which a “send message to server” can fire.
- number of players - just a nice QoL block

All the new blocks are documented in the plugin.
Design changes
Most the noticeable design change is the settings and custom blocks menu:
The buttons have been redesigned along with a darker background.
Capsule shaped blocks now have “shadows” to make them easier to see when they are stacked:
Minor change, quite neat.
Some animations are now going to be faster.
Quick documentation and Quick search got a thinner border now:
Compact mode introduced!
Just as showcased in this video (recording was made before the UI changes)