I2L [Instance To Lua] Plugin

I just remembered i made this plugin years ago and i dont remember what use i made it for, but i thought i may aswell let other people use it if they want to.
https://create.roblox.com/store/asset/101320348902361/InstanceToLua
How to use:
simply activate the plugin button, then select an instance you want to convert, and click the convert button. Done…

Here is an example output of what the plugin outputs:

function Create(Class,Properties,Children)
	Class = Class or 'Frame'
	Properties = Properties or {}
	Children = Children or {}
	
	local instance = Instance.new(Class)
	
	for Property,value in next,Properties do
		instance[Property] = value
	end
	for _,Child in next,Children do
		Child.Parent = instance
	end
	return instance
end
--                         //  Created By I2L  \\
--                         ¦¦Plugin by consuary¦¦
local SpawnLocation = Create(
	"SpawnLocation",{
		Duration = 0,
		BottomSurface = Enum.SurfaceType.Smooth,
		Position = Vector3.new(0, 0.5, 0),
		TopSurface = Enum.SurfaceType.Smooth,
		CFrame = CFrame.new(0,0.5,0),
		Anchored = true,
		Size = Vector3.new(12, 1, 12)
	},{
		Create(
			"Decal",{
				Face = Enum.NormalId.Top,
				Texture = "rbxasset://textures/SpawnLocation.png"
			}
		)
	}
)

return SpawnLocation

also, if anyone has any ideas on how i could improve this plugin, feel free to share them.

3 Likes

Attribute/Tag support would be cool!


I would also like to comment that systems like these can be greatly appreciated, easy to make, and are very common. I’ve made something like this myself for GUIs for some less experienced devs in the past, designed to let you make GUIs in mostly English and take advantage of StyleSheets.

Neat to see a similar system in plugin form!

Wait so it creates a module that returns the object?

i will work on that, thanks for letting me know

1 Like

No need to reinvent the wheel, Codify exists and does way more.

1 Like

^ This, and on top of that Codify supports conversions to other formats, such as for Vide, Typescript, or Rojo.

1 Like

yea, it is going to be better… its also $13.
Was just putting this out there because its something i made a while ago and found useful and i thought others could find this useful.

4 Likes

Does he know?

Codify is paid and is outdated by a lot
It doesn’t support many things that have been added (and that had existed), and, in my opinion, it is overpriced, and many people simply can’t buy it even if they have money because Roblox does not allow purchasing or selling plugins in most regions.
Hence why I made Hierarchy Saver, although for a little different reason.

The majority just wants code that doesn’t require weird dependencies (that also hurt performance and beginner access) and just wants code that works out of the box in the most optimal way.
This is why I think codify does not do its job well.

Wishing luck to OP for having their own converter’s development, though.