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

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

01function CloneSelection()
02    -- Clones selected parts
03 
04    -- Make sure that there are items in the selection
05    if #Selection.Items == 0 then
06        return;
07    end;
08 
09    -- Send the cloning request to the server
10    local Clones = SyncAPI:Invoke('Clone', Selection.Items, GetHighestParent(Selection.Items))
11 
12    -- Put together the history record
13    local HistoryRecord = {
14        Clones = Clones;
15 
View all 46 lines...
0
Can you provide some code? User#834 0 — 5y
0
k VykaGaming 7 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

You can change the parent of an object like so, if this is what you’re asking about:

1object.Parent = workspace

Happy Holidays :D

0
yes i know but i cant seem to find which line to put it on VykaGaming 7 — 5y
Ad

Answer this question