Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,a in pairs(game.Workspace:GetChildren()) do
- if a.ClassName:IsA("BasePart") then
- local p = Instance.new("SelectionBox")
- p.Parent = a
- p.Adornee = a
- p.Color3 = Color3.fromRGB(255, 0, 0)
- p.SurfaceColor3 = Color3.fromRGB(255, 0, 0)
- p.SurfaceTransparency = (0.9)
- game.Debris:AddItem(p, 1)
- else
- for i,b in pairs(a:GetChildren()) do
- if b.ClassName:IsA("BasePart") then
- local p = Instance.new("SelectionBox")
- p.Parent = a
- p.Adornee = a
- p.Color3 = Color3.fromRGB(255, 0, 0)
- p.SurfaceColor3 = Color3.fromRGB(255, 0, 0)
- p.SurfaceTransparency = (0.9)
- game.Debris:AddItem(p, 1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement