How do I make a Plugin?

Hello I am trying to make a plugin like this

Notice how when you change the shape the elements also change shape?

image

Is it possible to

  1. Lock the size of the plugin
    or
  2. Scale the gui to it just like this?

My code

local toolbar = plugin:CreateToolbar("Easy Monetization")
local pluginButton = toolbar:CreateButton("EZ Monetization", "Start selling now!", 'rbxassetid://0')
local info = DockWidgetPluginGuiInfo.new(Enum.InitialDockState.Right, false, false)
local widet = plugin:CreateDockWidgetPluginGui("TestPlugin",info)

currently doesnt do that

1 Like

Is it possible to use UIAspectRatioConstraints in plugins? Haven’t worked with them before. If so, that should fix your problem.

1 Like

Is it possible to

  1. Lock the size of the plugin
    or
  2. Scale the gui to it just like this?

1.i’m pretty sure there’s no “size lock” but you could specify a minium size

  1. it looks like those elements are sized with scale on X and offset on Y