:Clone() does not duplicate tools?
Asked by
8 years ago Edited 8 years ago
I have a script that duplicates a folder of stuff - models, other folders, scripts, etc. The problem is, using :Clone()
does not duplicate tools and leaves those behind, as shown in the video below.
Video: https://i.gyazo.com/b3ef1f10ad63c0defd2389bc1c50eb5b.mp4
How can I fix this?
EDIT:
Here's a screenshot of where the tools are coming from:
https://i.gyazo.com/f9698eda8a8fd057c7ba3d472546f96e.png
Here's my code:
01 | local terrainSaveLoad = require(game.ServerScriptService.TerrainSaveLoad) |
02 | local maps = game.ServerStorage.Maps |
05 | terrainSaveLoad:Load(maps.Village.Terrain) |
06 | Village = maps.Village.Village:Clone() |
07 | Village.Parent = workspace |
09 | workspace.Terrain:Clear() |
EDIT2:
Well I tested the same exact part hierarchy and the problem did not appear, so I'm not sure what's causing this. https://i.gyazo.com/c7d7570353127c419e32a72b2345e470.png
I also tried grouping the tools by themselves and that seemed to copy over correctly. It seems to be one of those random Roblox glitches I always get myself into.