squidingtin

MRT

Feb 23rd, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. N = 0
  2. for i, v in pairs(game.Workspace.Map.Maze.Generated:GetDescendants()) do
  3.     wait(.001)
  4.     if v:IsA ("Model") and v.Name == ("Walls") or v:IsA ("Model") and v.Name == ("Parts") and v.Parent == "SectorPiece" then
  5.         if v:FindFirstChild("Part") then
  6.             N = N +1
  7.             print(v.Name.."'s parent is "..v.Parent.Name)
  8.             v.Name = ("Wall Sector "..N)
  9.             v.Parent = game.Workspace.Folder
  10.         else
  11.         end
  12.     else
  13.     end
  14. end
Add Comment
Please, Sign In to add comment