Advertisement
dahpiglz

Untitled

Jun 6th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. for i,a in pairs(game.Workspace:GetChildren()) do
  2. if a.ClassName:IsA("BasePart") then
  3. local p = Instance.new("SelectionBox")
  4. p.Parent = a
  5. p.Adornee = a
  6. p.Color3 = Color3.fromRGB(255, 0, 0)
  7. p.SurfaceColor3 = Color3.fromRGB(255, 0, 0)
  8. p.SurfaceTransparency = (0.9)
  9. game.Debris:AddItem(p, 1)
  10. else
  11. for i,b in pairs(a:GetChildren()) do
  12. if b.ClassName:IsA("BasePart") then
  13. local p = Instance.new("SelectionBox")
  14. p.Parent = a
  15. p.Adornee = a
  16. p.Color3 = Color3.fromRGB(255, 0, 0)
  17. p.SurfaceColor3 = Color3.fromRGB(255, 0, 0)
  18. p.SurfaceTransparency = (0.9)
  19. game.Debris:AddItem(p, 1)
  20.  
  21. end
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement