Get started

Download example

Download rblx file from DevForum

Start

Open LS Example

Let's look at a simple example

local PluginComponents= require(game.ReplicatedStorage.PluginComponents.PluginComponents);



local Container = PluginComponents.Component.Container.New();
Container.SetParent(script.Parent)
.SetHeight(0, 600)
.SetWidth(0,360)



local btnExample = PluginComponents.Component.Btn.New()
.SetParent(Container)
.SetText("Example")
.SetBackgroundColor(PluginComponents.Color.Blue)
.MouseButton1Click:Connect(function()
    print("Click!")
end)

Result:

How does it work?

We create a simple container, using a function:

PluginComponents.Component.Container.New()

Next, use a point to change the properties of the created object

Container.SetParent(script.Parent)

.SetHeight(0, 600)

.SetWidth(0,360)

In doing so, obtain an autocomplete after each point:

Last updated