thetacahJoin Date: 2013-01-18 Post Count: 16026 |
It doesn't even create a Plugin..
local Plugin = PluginManager():CreatePlugin
local ToolBar=Plugin:CreateToolbar("Script")
local Button=ToolBar:CreateButton(
"",
"Add Script",
"Pic.png"
)
Button.Click:connect(function()
local Scripto=Instance.new("Script", workspace)
Scripto.Source="--Original script made by Thetacah"
end) |
|
thetacahJoin Date: 2013-01-18 Post Count: 16026 |
This is what the Folder looks like:
https://twitter.com/thetacah/status/488859436669493248/photo/1 |
|
thetacahJoin Date: 2013-01-18 Post Count: 16026 |
bump |
|
thetacahJoin Date: 2013-01-18 Post Count: 16026 |
:D BUMPS |
|
thetacahJoin Date: 2013-01-18 Post Count: 16026 |
da |
|
BlupoV2Join Date: 2012-11-12 Post Count: 543 |
local Plugin = PluginManager():CreatePlugin() not local Plugin = PluginManager():CreatePlugin |
|
thetacahJoin Date: 2013-01-18 Post Count: 16026 |
This still doesn't work, and it doesn't print anything
print("Script running!")
local Plugin = PluginManager():CreatePlugin()
print("Plugin created")
local ToolBar=Plugin:CreateToolbar("Script")
print("ToolBar")
local Button=ToolBar:CreateButton(
"",
"Add Script",
"Pic.png"
)
print("Button")
Button.Click:connect(function()
local Scripto=Instance.new("Script", workspace)
Scripto.Source="--Original script made by Thetacah"
end) |
|
DataStoreJoin Date: 2012-02-07 Post Count: 8540 |
There's absolutely nothing wrong with it. I just copied your script, threw in a picture named Pic, and opened studio. The button appeared, under 'Plugins' (new 2013 theme), and worked when clicked. |
|
thetacahJoin Date: 2013-01-18 Post Count: 16026 |
Yeah, I just got it to work. I realised the document wasn't saving under a LUA so I had to save it another way. Anyways, it works. |
|
|
Why are you not using the new and more efficient way of making plugins?
Script in studio;
toolbar = plugin:CreateToolbar("Name")
button = toolbar:CreateButton("Name", "Short description", "piclink")
button.Click:connect(function()
--code
end)
In studio; Right click that script ^ and click publish as plugin. Go to the URL in studio and install it. Open a new window to use. |
|
RobuxLifeJoin Date: 2012-09-19 Post Count: 13336 |
@war
do I just change the piclink to a decal link? |
|
|
@Robux
After you convert it to asset form, yes, here's an example from the wiki;
print("Loading Block Identifier...")
-- Check if user has loaded plugin before
local hasLoaded = plugin:GetSetting("pluginHasLoaded")
if not hasLoaded then
print("Welcome to the Block Identifier. To use this plugin, click on the button in the addon bar, then click on the object you want to inspect.")
plugin:SetSetting("pluginHasLoaded", true)
end
-- Setup Toolbar
local toolbar = plugin:CreateToolbar("Block Identifier")
-- Setup button
local button = toolbar:CreateButton(
"Button",
"Press me",
"http://www.roblox.com/asset/?id=145723965"
)
button.Click:connect(function()
print("Plugin is now active")
plugin:Activate(true) -- Neccessary to listen to mouse input
end)
-- Setup mouse
local mouse = plugin:GetMouse()
mouse.Button1Down:connect(function() -- Binds function to left click
local target = mouse.Target
if target then
print("Target: " .. target.Name)
end
print("X: " .. mouse.X .. " Y: " .. mouse.Y)
end)
print("Finished Loading Block Identifier")
For a more in depth guide on how to make plugins using the new way, see the wiki tutorial here;
http://wiki.roblox.com/index.php?title=Tutorial:Plugins |
|