how do i make f3x cloned part go to workspace?
Asked by
5 years ago Edited 5 years ago
i am doing a building game but every time someone regens the stand the parts cloned from that spawn also get removed becouse they stay in the same folder, any help?
this is what i got when i searched clone
01 | function CloneSelection() |
05 | if #Selection.Items = = 0 then |
10 | local Clones = SyncAPI:Invoke( 'Clone' , Selection.Items, GetHighestParent(Selection.Items)) |
13 | local HistoryRecord = { |
16 | Unapply = function (HistoryRecord) |
20 | Selection.Remove(HistoryRecord.Clones, false ); |
23 | SyncAPI:Invoke( 'Remove' , HistoryRecord.Clones); |
27 | Apply = function (HistoryRecord) |
31 | SyncAPI:Invoke( 'UndoRemove' , HistoryRecord.Clones); |
38 | History.Add(HistoryRecord); |
41 | Selection.Replace(Clones); |
44 | coroutine.wrap(Selection.FlashOutlines)(); |