BlockLua is here!
Welcome to BlockLua!
BlockLua is the next-generation visual scipting plugin for Roblox.
Compared to EventBlocks (the previous plugin), BlockLua is much faster and has a completely new engine and the UI is much more consistent.
Due to the completely revamped engine, it has WAY better performance and it’s able to handle large scripts with ease.
Keep in mind that BlockLua is slightly more complicated than EventBlocks. Also the plugin has less features at the moment.
Please share ideas and bug reports in the replies
The plugin costs 120 robux (about $1.50), a pretty low price
Absolute beginner tutorial
As a very simple introduction, we’re going to make a lava part.
(The UI may not look the same, but you should be able to figure it out!)
Just a note, if you’ve just installed the plugin, you need to enable every permission it asks for to work properly.
Ok, so if you have just installed the plugin and opened your place you should go to the ‘Plugins’ tab and find the BlockLua Toggle button.
Click the button so it looks like on the image above.
Now, you should see the plugin’s toolbar at the bottom-right corner of the viewport.
This shows that the plugin is running.
So, first of all I’ll let you design the lava part. I’ve made this:
(you can name it whatever you want)
Next up, select your part and add a Script to it.
(you can rename the script if you would like to)
After that, select the script and open the gui using the arrow in the toolbar.
Now, click the big ‘Convert to BlockLua script’ button. This will convert the script so the plugin interact with it.
And we can start scripting, yey!
Let’s use the searchbar and drop in a ‘touched by character’ block from the left.
Ok, you can see there’s an input that says ‘instance’. That means you need to specify what part you want to detect if it’s touched by a character.
For this script, we’re just going to use the ‘me’ block, that is simply the ‘parent of the script’, which is in this case, the lava part
This is how it looks if you have dropped the ‘me’ block into the ‘touched by character’ block.
And now, we need to tell it what to do when it touches a character. That is simple, let’s search for the ‘kill’ block and drop it inside the ‘touched by character’ block!
Oh look! It looks like you need to tell it which humanoid to kill. In this case we want to kill the humanoid of the character who touched the part.
First, let’s get the humanoid using this block:
Just drop in “var. _touched_character” into the “character model” input.
Now, let’s tell the kill block which humanoid to kill.
To do this, you can drag the “var. _humanoid” block variable out of the ‘get hum. from model’ block and drop it into the kill block’s “humanoid” input.
Okay so, we check when the part is touched by a character, we get the humanoid of that character and kill it using the kill block. Fantastic!
Let’s try it out and see the magic happen!
If you have any questions or ideas please tell it in the form of a reply
Have a great day!