Walls stop existing in game but not in studio

I have made a maze-making script and it starts by making a grid of cells that i have made. each cell is a floor and 4 walls parented to the cell.

in studio, everything works perfectly as expected, creating the grid, then the maze.
When I play the game using roblox however, I see the floor made from the cells appear, but the walls are missing. the script then errors because the walls dont exist and are nil.

I have tried parenting the cell into a model and printing the walls when they are being cloned and placed. I can only tell that they first exist when they are being placed, but then disappear when going to the next stage of making the maze.

expected: (what happens in studio)


what i get: (size of the plate doesnt matter, the lack of walls does)
image

Any help or suggestion to debug this would be appreciated because I don’t know how to deal with in-game only problems.

I’m not on the right platform to be of more help, but you should start with checking that every part has its anchor and archivable properties set to true.

If both of those properties are correct, then it’s likely something written in your game logic that’s causing the issue. I can’t help you further in that case without code.

1 Like

I don’t actually have the walls anchored at first, but they get anchored after being in place. Gonna see if anchoring them helps real quick

dont know why but it works now, thanks