Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = 0
- for i, v in pairs(game.Workspace.Map.Maze.Generated:GetDescendants()) do
- wait(.001)
- if v:IsA ("Model") and v.Name == ("Walls") or v:IsA ("Model") and v.Name == ("Parts") and v.Parent == "SectorPiece" then
- if v:FindFirstChild("Part") then
- N = N +1
- print(v.Name.."'s parent is "..v.Parent.Name)
- v.Name = ("Wall Sector "..N)
- v.Parent = game.Workspace.Folder
- else
- end
- else
- end
- end
Add Comment
Please, Sign In to add comment