Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Cloning Goupped Parts Help?

Im Using This code for Clone A Part.

local clone = game.Workspace.Part:Clone()
clone.Parent = game.Workspace
clone.position = Vector3.new(5,12,8)

Im trying to clone Groupped parts Together Witout Writing Long Script. How Can I Do This?

3 answers

Use

local ClonedPart = game.Workspace.Part:Clone()
ClonedPart.Name = ClonedPart

and if you want to set it's position, use

ClonedPart.Position = 

ROBLOX’s Clone method deep copies any instance.

This includes the properties, only chance the position and the parent if they’re not already. You can just :Clone() and simply let it be.

Actually,I Find A Way To Cloning Groups! Here's script:

local block = game.ServerStorage.Machines:FindFirstChild("Upgrader"):Clone() 
block.Parent = game.Workspace
block:SetPrimaryPartCFrame(CFrame.new(-103.5, 2.125, 242.25))
	

This discussion is preserved as it was. New answers, comments, and votes are closed.