How would I make this?
This is not a request site. Either make and show or an attempt or find a better site, this is not how we do things here. Look here for reference
All depends what you mean.
If you mean a tool that unanchors bricks that you click then:
script.Parent.Equipped:connect(function(Mouse) Mouse.Button1Down:connect(function() if Mouse.Target and not Mouse.Target.Locked then if Mouse.Target.Anchored then Mouse.Target.Anchored = false; else return print("Already unanchored!"); end else return print("Part is locked"); end end) end)
That code goes inside a LocalScript inside your tool. This script was designed for the Tool object WITHOUT a Handle, but works either way. But if you mean a tool that unanchores SPECIFIC bricks, for example a door, then:
local Bricks = { Workspace.Part; Workspace.Part2; Workspace.Door; } script.Parent.Equipped:connect(function(Mouse) Mouse.Button1Down:connect(function() for _,Item in pairs(Bricks) do if Item.Anchored then Item.Anchored = false; else return print("Bricks are already unanchored!"); end end end) end)
NOTE: This will only work if the parts are ANCHORED.
I hope this helps. :)
Closed as Not Constructive by koolkid8099, YellowoTide, and M39a9am3R
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?