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

Cloning Goupped Parts Help?

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

Use

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

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

ClonedPart.Position = 
Ad
Log in to vote
0
Answered by
SmartNode 383 Moderation Voter
5 years ago

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.

Log in to vote
0
Answered by 5 years ago

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))

Answer this question