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
 

Plug-in button not working in game.

Previous Thread :: Next Thread 
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 03:26 PM
When I try to select it, it just.. won't select it. Clicking furiously (surprisingly) doesn't help either.

It's in the plugins folder, the folder is called demo (I used the download from the blog post and then copied and pasted another script I found into it.) and the icon is called blockspawner.png. The lua code it's is called random.lua.

I'm convinced that it's something to do with the first lines.

self = PluginManager():CreatePlugin()
toolbar = self:CreateToolbar("ModelEdit")
button = toolbar:CreateButton("", "ModelEdit", "blockspawner.png")
mouse = self:GetMouse()

Can anyone help? I have a lot to learn about plugins... This is porbably really simple.
Report Abuse
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 03:37 PM
Is this not as simple as i thought or can no one be bothered to help me?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
13 Aug 2011 03:38 PM
There's nothing wrong with it, it's doing what it's supposed to do. :]
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
13 Aug 2011 03:39 PM
Nothing is wrong with the first few lines. From what I saw.
Report Abuse
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 03:40 PM
So, this plugin I got is supposed to make me click furiously and do nothing?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
13 Aug 2011 03:40 PM
If you're trying to get it to create a brick, try this:

self = PluginManager():CreatePlugin()
toolbar = self:CreateToolbar("ModelEdit")
button = toolbar:CreateButton("", "ModelEdit", "blockspawner.png")
mouse = self:GetMouse()

button.Click:connect(function()
local p = Instance.new("Part", workspace)
end)
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
13 Aug 2011 03:41 PM
And, yes. The only thing your script does it create the plugin, it doesn't make it do anything.
Report Abuse
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 03:41 PM
It's supposed to be a cframe tool.

self = PluginManager():CreatePlugin()
toolbar = self:CreateToolbar("Cframe")
button = toolbar:CreateButton("", "Random", "blockspawner.png")
mouse = self:GetMouse()

button.Click:connect(function()
self:Activate()
local e = Instance.new("Part")
e.Anchored = true
e.formFactor = "Custom"
e.Transparency = 1
e.Name = "ModelSelectionBox"
local h = Instance.new("Handles")
h.Style = "Movement"
h.Color = BrickColor.new("Bright orange")
local box = Instance.new("SelectionBox")
local m = nil
local parts = {}
mouse.Button1Down:connect(function()
m = mouse.Target
if m then
if m.Name == "ModelSelectionBox" then
m:remove()
m = mouse.Target
end
end
if not m then
h.Parent = nil
e.Parent = nil
box.Parent = nil
elseif m.Locked then
h.Parent = nil
e.Parent = nil
box.Parent = nil
else
parts = {}
local total = Vector3.new()
if m.Parent == workspace then
table.insert(parts, m)
total = m.Position
e.Parent = nil
h.Adornee = m
box.Adornee = m
else
repeat m = m.Parent until m.Parent == workspace
e.Parent = workspace
e.Size = m:GetModelSize()
local a = m
repeat
for _, v in ipairs(a:GetChildren()) do
if v:IsA("BasePart") then
table.insert(parts, v)
total = total + v.Position
else
a = v
end
end
a = nil
until not a
e.CFrame = CFrame.new(total/#parts)
h.Parent = game.CoreGui
h.Adornee = e
box.Parent = game.CoreGui
box.Adornee = m
end
end
end)
local pDist, pRes = 0, Vector3.new()
h.MouseButton1Down:connect(function()
pDist = 0
pRes = e.Size
end)
h.MouseDrag:connect(function(face, dist)
local new = e.CFrame * CFrame.new(Vector3.FromNormalId(face)*(dist-pDist))
for _, v in ipairs(parts) do
v.CFrame = new:toWorldSpace(e.CFrame:toObjectSpace(v.CFrame))
end
e.CFrame = new
pDist = dist
end)
end)
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