Here is what i have tried
PluginManager()
:CreatePlugin()
:CreateToolbar("Make new part plugin")
:CreateButton(
"Make new part",
"Click this button to make a part",
"IconName.png"
).Click:connect(function()
game.Instance = game.Instance.new("Part", workspace)
end)

2 comments
Thanks but i don't know why local is in front of it.
Local variables are more efficient that global variables, so you should use that whenever you can.