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 |
|
|
|
| 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
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 17 Aug 2013 01:50 AM |
| Ok I changed the image #sweg |
|
|
| Report Abuse |
|
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
|
| 17 Aug 2013 02:05 AM |
| Tell me if I'm wrong, but the mouse.hit.p doesn't seem right lol.. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 02:06 AM |
oh and it's hill.Button1Down
not hill.click :P |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 02:12 AM |
| Also remove the "local" from pc to hill |
|
|
| Report Abuse |
|
|