Cloned map falls apart?
Asked by
6 years ago Edited 6 years ago
I tried to make a random map chooser. It works, but I need my map destructible, so I unanchored the map. However, it falls apart. I even included clone:MakeJoints()
What was so wrong?
1 | local function changeMap() |
2 | local maps = game.ServerStorage.Maps:GetChildren() |
3 | local map = maps [ math.random( 1 ,#maps) ] |
4 | local clone = map:Clone() |
5 | clone.Parent = game.Workspace.GameMap |
My map also has folders and models inside the cloned map. All the parts in there have welds, studs, and inlets.