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: I am new to plugins

Previous Thread :: Next Thread 
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:44 AM
local pc = PluginManager()
local p = pc:CreatePlugin()
local mouse = p:GetMouse()
local t = p:CreateToolbar("Hilly World Plugin")
local hill = t:CreateButton("Sphere Hills","Create spherical hills where ever you click","")

hill.Click:connect(function(click)
p:Activate()
local mp = mouse.Hit.p
print(mp)
local part = Instance.new("Part",workspace)
part.BrickColor = BrickColor.new("Bright green")
part.Material = "Grass"
part.Shape = "Ball"
local ss = math.random(50,75)
part.Size = Vector3.new(ss,ss,ss)
part.CFrame = CFrame.new(mp)
end)

I know that I set the icon to nothing? Is that bad :/

Reason I am posting this, the plugin is not even showing upers...
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 01:46 AM
It should but if you set the image to nothing then it'll just be blank.
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:50 AM
Ok I changed the image #sweg
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 01:50 AM
two munch sweg to hendel
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:51 AM
local pc = PluginManager()
local p = pc:CreatePlugin()
local mouse = p:GetMouse()
local t = p:CreateToolbar("Hilly World Plugin")
local hill = t:CreateButton("Sphere Hills","Create spherical hills where ever you click","new_icon.png")

hill.Click:connect(function(click)
p:Activate()
local mp = mouse.Hit.p
print(mp)
local part = Instance.new("Part",workspace)
part.BrickColor = BrickColor.new("Bright green")
part.Material = "Grass"
part.Shape = "Ball"
local ss = math.random(50,75)
part.Size = Vector3.new(ss,ss,ss)
part.CFrame = CFrame.new(mp)
end)

New script, still doesn't work, and I don't even know if it should have a output but it doesn't.
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:54 AM
BTW:

I am doing this on a mac in TextEdit, I am almost completely sure that is what you are supposed to use but what do I know
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:59 AM
Bumbty
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 02:03 AM
Bumbty #2
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 02:05 AM
Tell me if I'm wrong, but the mouse.hit.p doesn't seem right lol..
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 02:06 AM
oh and it's hill.Button1Down

not hill.click :P
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 02:12 AM
Also remove the "local" from pc to hill
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