I need help with cloning a model with things in it

So I’m trying to clone a model in the same exact place and I made a script but it isn’t cloning, I’m a really basic scripter so I didn’t get far but this is what I got.

-- Function Script --
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.ClickBlocks:Clone()
wait(10)
end)

Am I doing anything wrong? Do I need to create a position for the clone?
• The model has things inside of course.
• This is in a GUI so don’t worry about click detectors.

maybe just copy and paste the script into the clone

1 Like

Seems like you forgot to set the parent of the clone

script.Parent.MouseButton1Click:Connect(function()
    local Clone = game.Workspace.ClickBlocks:Clone()
    Clone.Parent = game.Workspace -- Set the parent here
    wait(10)
end)
1 Like

What do you mean? The script is supposed to make a clone of a model already in the game.

Thanks, I’ll try it. Tell 'ya if it works.

1 Like

oh I thought you meant you had a script inside of a model and you tried to ctrl c ctrl v and the script didn’t copy

2 Likes

It’s okay. Have a good day. :slight_smile:

Thanks, it works. Thanks for the help and have a good day! :slight_smile:

1 Like

Glad I could help you, oh and don’t forget to mark this topic as solved.