9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
|
| 13 Sep 2015 09:09 AM |
local plugin = PluginManager():CreatePlugin() local toolbar = plugin:CreateToolBar("Hello World Plugin") local button = toolbar:CreateButton( "", "Click this button to print hello world!" "control_play.png" ) button.Click:connect(function()) print("Hello world") end)
Did exactly as the wiki said... |
|
|
| Report Abuse |
|
|
ChuckXZ
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 2996 |
|
|
| 13 Sep 2015 09:17 AM |
do
#code local plugin = PluginManager():CreatePlugin() local toolbar = plugin:CreateToolBar("Hello World Plugin") local button = toolbar:CreateButton( "", "Click this button to print hello world!", "control_play.png" ) button.Click:connect(function()) print("Hello world") end)
#code repeat wait(.05) until thread ~= nil |
|
|
| Report Abuse |
|
|
EgoMoose
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 2896 |
|
|
| 13 Sep 2015 09:28 AM |
| Do you have the image with the proper name in the folder too? |
|
|
| Report Abuse |
|
|
9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
|
| 15 Sep 2015 08:34 AM |
| I have the image name correct, but still doesn't work? |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 11:03 AM |
| You forgot a comma in there. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 11:04 AM |
local plugin = PluginManager():CreatePlugin() local toolbar = plugin:CreateToolBar("Hello World Plugin") local button = toolbar:CreateButton( "", "Click this button to print hello world!", "control_play.png" ) button.Click:connect(function() print("Hello world") end) |
|
|
| Report Abuse |
|
|