generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Plugin Help

Previous Thread :: Next Thread 
kjh45 is not online. 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 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
12 Dec 2013 05:57 PM
what problem are you having with it
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
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 is not online. kjh45
Joined: 15 Feb 2009
Total Posts: 256
12 Dec 2013 06:02 PM
Adding the ("") did not help.
Report Abuse
kjh45 is not online. 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 is not online. 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 is not online. kjh45
Joined: 15 Feb 2009
Total Posts: 256
12 Dec 2013 06:44 PM
the*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image