kjh45
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 256 |
|
|
| 12 Dec 2013 05:56 PM |
What is wrong with this?
Version = "Version 1.0" print ([[Prompt Script Plugin]],Version,"Loaded")
--[[Prompt Script Plugin. Written by: Kjh45 A.K.A AxialDesigner Desc: Prompt Script Plugin is designed to make scripting more efficent, faster and easier. Vesion: 1.0.0 Written on: 12/2/2013 Updated on: 12/2/2013 ]]
--Plugin Manager---------------------------------------------------------
local plugin = PluginManager():CreatePlugin() local toolbar = plugin:CreateToolbar local script = toolbar:CreateButton("", "Prompt_Script", "add_script.png") local lscript = toolbar:CreateButton("","Prompt_Local_Script","add_local.png")
--Script Insert-- function Insert_Script() local script = Instance.new("Script") script.Name = "Prompt_Script" script.LinkedSource = "http://www.roblox.com/asset?id=138321232"
--Local Script Insert-- function Insert_Local_Script() local scriptlv = Instance.new("LocalScript") scriptlv.Name = "Prompt_Script" scriptlv.LinkedSource = "http://www.roblox.com/asset?id=138321232" --Onclick--
script.Click:connect(function() Insert_Script() end)
lscript.Click:connect(function() Insert_Local_Script() end) |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 12 Dec 2013 05:57 PM |
| what problem are you having with it |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2013 05:58 PM |
Your line: local toolbar = plugin:CreateToolbar
That isn't right. Should look more like this:
local toolbar = plugin:CreateToolbar("Toolbar Name") |
|
|
| Report Abuse |
|
|
kjh45
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 256 |
|
|
| 12 Dec 2013 06:02 PM |
| Adding the ("") did not help. |
|
|
| Report Abuse |
|
|
kjh45
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 256 |
|
|
| 12 Dec 2013 06:13 PM |
When I added end to the --Local Insert Script-- and -- Insert Script-- I got the buttons to appear and then I realized I had not specified the parent for it but when I set the parent in both script.Parent = game.Workspace and ("Script", Workspace) they we not there anymore. |
|
|
| Report Abuse |
|
|
kjh45
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 256 |
|
|
| 12 Dec 2013 06:31 PM |
I realized I had somehow gotten rid of the end so now I have the buttons that inserts the scripts correctly but it does not have he LinkedSource. |
|
|
| Report Abuse |
|
|
kjh45
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 256 |
|
| |
|