|
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Aug 2011 03:38 PM |
| There's nothing wrong with it, it's doing what it's supposed to do. :] |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2011 03:39 PM |
| Nothing is wrong with the first few lines. From what I saw. |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2011 03:40 PM |
| So, this plugin I got is supposed to make me click furiously and do nothing? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|