Advertisement
LapisDevelopment

Roblox WireFrame Script

Aug 15th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. wireFrame=function(p)
  2. if p:IsA'BasePart' then
  3. local s=Instance.new"SelectionBox"
  4. s.Parent=p
  5. s.Adornee=p
  6. --s.Color=p.BrickColor
  7. s.Color=BrickColor.White()
  8. s.LineThickness=0.01
  9. end
  10. end
  11. createWireFrame=function(parent)
  12. wireFrame(parent)
  13. for _,v in next, parent:children() do
  14. wireFrame(v)
  15. createWireFrame(v)
  16. end
  17. end
  18. createWireFrame(workspace)
  19. workspace.DescendantAdded:connect(function(p)
  20. createWireFrame(p)
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement