vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Jul 2017 11:25 PM |
this wiki page is pretty vague on the whole thing:
http://wiki.roblox.com/index.php?title=Tutorial:Plugins
for example, in the example in the page, what is "plugin" that the script keeps referencing?? whenever i try to type something like "plugin:CreateToolbar()", "plugin" is underlined in blue. is there something im missing here?
|
|
|
| Report Abuse |
|
|
WXBZ
|
  |
| Joined: 10 Oct 2012 |
| Total Posts: 850 |
|
|
| 19 Jul 2017 11:27 PM |
It is underlined but doesn't affect the script, it is kinda annoying.
for _, post in pairs(game.Players.WXBZ.Posts:GetChildren()) do post.Signature.Text = 'scripters.cf' end |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Jul 2017 11:38 PM |
i think there's something that im missing here
how in the world do i make a plugin??? this is my current script. its a script inside of a model in workspace. i get an error saying "attempt to index global "plugin", a nil value". if ive gotten something wrong with how to set it up, please let me know because the documentation on plugins is really poor
local buttons = plugin:CreateToolbar("Smooth bricks") local button = buttons:CreateButton("Enable", "Enable the plugin")
button.Click:Connect(function() plugin:Activate(true) end)
|
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 19 Jul 2017 11:58 PM |
| That says plugin is now a global keyword, but that certainly doesn't seem to be the case... Also, I was looking through some code of other plugins I've installed and from what I see they're all using "local plugin = PluginManager():CreatePlugin()" even though that tutorial says not to... |
|
|
| Report Abuse |
|
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 20 Jul 2017 12:00 AM |
| If I were you I wouldn't let this hold me up. I would do it the same way others are and if you find a better/more up to date way of doing it later on, fix it then. |
|
|
| Report Abuse |
|
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 20 Jul 2017 12:03 AM |
| Never mind I get it now... This should help you: https://forum.roblox.com/Forum/ShowPost.aspx?PostID=183478188 |
|
|
| Report Abuse |
|
|