Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I get started on making a plugin?

2 answers

✓ Accepted answer

Basically, a plugin works exactly like a normal script, except that it runs each time you open a place it studio, and you've got access to the plugin global variable, wich unlocks you more possibilities. For example, you can get access to the mouse like this :

mouse = plugin:GetMouse()
mouse.Button1Down:connect(function() print("Clicked") end)

To publish and test a plugin you've just created, all you have to do is put your script in a model, then right click the model and choose "Publish as plugin". Check out the wiki article if you want to learn more about plugins : http://wiki.roblox.com/index.php?title=Tutorial:Plugins

Try this.

local Plugin = PluginManager():CreatePlugin()
local Bar = Plugin:CreateToolbar('Part Spawner')
local Button = Bar:CreateButton('Part Spawner', 'Spawn a Part', '')

Button.Click:connect(function()
	local Part = Instance.new('Part', Workspace)
end)

If needed, feel free to add some of your own code, such as

Part.Anchored = true
  • Nen

This discussion is preserved as it was. New answers, comments, and votes are closed.