Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cloned map falls apart?

Asked by
MrHerkes 166
5 years ago
Edited 5 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?

local function changeMap()
    local maps = game.ServerStorage.Maps:GetChildren()
    local map = maps[math.random(1,#maps)]
    local clone = map:Clone()
    clone.Parent = game.Workspace.GameMap
    clone:MakeJoints()
end

My map also has folders and models inside the cloned map. All the parts in there have welds, studs, and inlets.

0
Maybe it's just the map, make sure the non-anchored parts are well-jointed to anchored parts like baseplate of the map User#17685 0 — 5y
0
Does the whole map fall apart? valchip 789 — 5y
0
The whole map falls apart. MrHerkes 166 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

This may because your map is not Anchored or it has some parts that are not welded correctly.

-Enomphia

0
It might need to be anchored Enomphia 39 — 5y
Ad

Answer this question