How To Make Plugins: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
Added in some mac stuff
>Quenty
(Clarifying Paint.Net is not MS Paint.)
>Merlin11188
(Added in some mac stuff)
Line 2: Line 2:


* A decent knowledge of scripting in Lua
* A decent knowledge of scripting in Lua
* Text editing program (such as Notepad, SciTE, or Notepad++)
* Text editing program (such as Notepad, SciTE, Notepad++, or TextEdit)
* ROBLOX Studio
* ROBLOX Studio


Line 20: Line 20:


'''C:\Documents and Settings\''Username''\Local Settings\Application Data\Roblox\plugins'''
'''C:\Documents and Settings\''Username''\Local Settings\Application Data\Roblox\plugins'''
In Mac OS X, it should look like this:
'''/Users/''Username''/Documents/Roblox/plugins'''


Because this folder is separate from the main Roblox files, your installed plugins will not be deleted when ROBLOX updates.
Because this folder is separate from the main Roblox files, your installed plugins will not be deleted when ROBLOX updates.
Line 27: Line 31:
In the plugins folder, create a new folder by right-clicking and selecting '''New''' -> '''Folder'''. Name the new folder ''HelloWorldPlugin''.
In the plugins folder, create a new folder by right-clicking and selecting '''New''' -> '''Folder'''. Name the new folder ''HelloWorldPlugin''.


=== Getting an Button Icon ===
 
=== Getting a Button Icon ===


Your plugin's files are put into your plugin's new folder (not ROBLOX's plugin folder). First-off, you might want to download an icon set to find icons for your new plugin's buttons. There are many free icon sets online, however ROBLOX uses FamFamFam's Silk Icon Set for most of it's icons. FamFamFam's Silk Icons is a great icon set; you can check it out here: [[http://www.famfamfam.com/lab/icons/silk/ Silk icon set by FamFamFam]]
Your plugin's files are put into your plugin's new folder (not ROBLOX's plugin folder). First-off, you might want to download an icon set to find icons for your new plugin's buttons. There are many free icon sets online, however ROBLOX uses FamFamFam's Silk Icon Set for most of it's icons. FamFamFam's Silk Icons is a great icon set; you can check it out here: [[http://www.famfamfam.com/lab/icons/silk/ Silk icon set by FamFamFam]]
Line 49: Line 54:
== Creating A Plugin Script ==
== Creating A Plugin Script ==


This is the part where you need your scripting knowledge. Open up Notepad or your favorite text-editing software ([http://notepad-plus-plus.org/ Notepad++] is great for programming and scripting!).
This is the part where you need your scripting knowledge. Open up your favorite text-editing software (such as one of the programs listed above).


The plugin's API is as follows:
The plugin's API is as follows:
Line 92: Line 97:


}}
}}
Yay! Now save it to wherever you like (preferably 'My Documents'), and if you're using Notepad, make sure this is what the save dialog looks like:
Yay! Now save it to wherever you like (preferably 'My Documents'), and if you're using Notepad, make sure this is what the save dialog looks like (for Windows; for Mac, follow the idea):


[[Image:NotepadPluginSaveDialog.png]]
[[Image:NotepadPluginSaveDialog.png]]


Notice the 'All Files' bit, and we added '.lua' on the end of the file name. Save the script into the 'HelloWorldPlugin' folder we made earlier.
Notice that we added '.lua' onto the end of the file name. Save the script into the 'HelloWorldPlugin' folder we made earlier.
Also, Windows users, notice the 'All Files' bit.


== Testing your plugin==
== Testing your plugin==
Anonymous user

Navigation menu