Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --EXAMPLE ONE: name changing
- lq("&all|").attr("Name", "Test") --select everything located in Workspace, change name to Test
- lq("&direct|").attr("Name", "Test2") --select everything only directly inside of Workspace, change name to Test2
- --RESULT: http://i.imgur.com/58I6Eur.png
- --EXAMPLE TWO: destroy everything located inside of Model (which is located in Workspace)
- lq("&all|", Workspace.Model).dest()
- --you can also pass a callback for destroy, where normally you couldn't
- lq("&all|", Workspace.Model).dest(function(object)
- print(object.Name, "has been destroyed!")
- end)
Advertisement
Add Comment
Please, Sign In to add comment