Convert2Lua | Convert UI to code in one click

Presenting…

Convert2Lua

A plugin used to convert UI to code, preferably inside a frame. The code is well formatted and indented, apart from some inevitable whitespaces.

It also has a ‘tracking’ feature, which can track changes inside the output script and execute these changes immediately to preview the live version of the code, without needing to click play in studio. Hence, the plugin requires you to enable loadstring for a full experience!

Why Convert2Lua?

I wanted to start out making plugins, but I had poor UI designing skills. I made this, hence, to help in making UI that can’t help but be made using code.

The UI of the plugin was also made using the plugin :grinning_face_with_smiling_eyes:

https://www.roblox.com/library/6756652873/Convert2Lua

The code for this is quite unpolished, in one script and a bit disorganized. However, it does what it’s supposed to do. The code is below, if you have any intention of modifying or looking at the code. Don’t forget to turn on loadstring in ServerScriptService!
14 Likes

When I click track on a frame it says to click on a localscript. When i click on one and click convert it says it doesn’t support local scripts. Am I doing something wrong or is this a bug?

1 Like

what this means???


What they mean by: “converting a UI to code” is basically looping through the UI and generating a script that when ran will re-create it.

1 Like

From what I can tell, and to answer @velliaan and @p49p0’s questions, it puts a LocalScript into a GUI that saves its properties.

If the owner needs me to take this part of his source code down, I can.
1 Like

You can only convert UI (Frames) and track changes in the localscript, you need to press the LocalScript first and click track.
Thanks for checking it out! :grinning_face_with_smiling_eyes:

Nice plugin, I was about to release mine but now I don’t need to write up a long topic anymore lol

2 Likes

not trying to be mean or anything…
but whats the purpose of this plugin, why would I need to covert into code…?

and this could be a great weapon against us developers.
now exploit developers could create their GUIs in literal minutes…

Believe it or not, many people actually prefer to have their UI generated by code. (especially web-devs, I guess)

1 Like

In my case it’s very useful for making my UIs modular and more manageable by using a MVC method and by having it generate code, it’s easier to make tweaks on the views. Most modern web servers utilize MVC and their views are mainly code generated.

1 Like

I see some exploiters use this to make Ui’s more efficiently.

This was always going to be an issue, though I don’t really consider it to be a big issue. This is a tool for everyone, just because some use it incorrectly doesn’t mean this plugin should be taken down, as it helps many people who use it for its intended purpose.

2 Likes