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: HALP! Plugin no work!

Previous Thread :: Next Thread 
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
07 Sep 2011 10:02 AM
self = PluginManager():CreatePlugin()
mouse = self:GetMouse()
selection = game:GetSelection()
toolbar = self:CreateToolbar("Copy")
toolbarbutton = toolbar:CreateButton("Copy", "Copier", "add.png")
toolbarbutton.Click:connect(function())
selection:clone()
end)
end

Output: CopyPlugin.lua:6: unexpected symbol near ')'
It's a plugin, that is supposed to show itself with a button and copy whatever you have selected. I would set it at Workspace only except I would like to be able to copy just about anything.
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
07 Sep 2011 10:11 AM
line 6 has an extra ):

toolbarbutton.Click:connect(function())
selection:clone()
end)

should be

toolbarbutton.Click:connect(function()
selection:clone()
end)
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
07 Sep 2011 10:19 AM
Then we get this in Output: CopyPlugin.lua:9: '-eof-' expected near 'end'
the -- around eof are for <>.
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
07 Sep 2011 10:24 AM
http://wiki.roblox.com/index.php/Common_Scripting_Mistakes#Confusing_Error_Messages
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
07 Sep 2011 10:29 AM
Done that, seen it. Tried to revise script, new version is

self = PluginManager():CreatePlugin()
mouse = self:GetMouse()
selection = game.Workspace.Selection:Get()
toolbar = self:CreateToolbar("Copy")
toolbarbutton = toolbar:CreateButton("Copy", "Copier", "add.png")--Remove ", "linkedit.png"" unless you know what it means!!!!! (or change it if you really know what your doing!)
toolbarbutton.Click:connect(function()
selection:clone()
end)

Output: Selection is not a valid member of Workspace
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
07 Sep 2011 11:35 AM
Bumperz!
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
07 Sep 2011 12:26 PM
Bump!
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
08 Sep 2011 09:54 AM
BUMP!
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
11 Sep 2011 05:58 PM
BUMP*2!
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
25 Sep 2011 02:59 PM
BumpDump?
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
28 Sep 2011 11:33 PM
http://wiki.roblox.com/index.php/RBX.lua.Selection_(Service)
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
28 Sep 2011 11:46 PM
Selection::Get() returns a table of instances, not an actual instance (because that's going to be giving you trouble later).
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