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

How do i clone a part and its exact position and rotation?

I am curious on how to clone a part in its exact form and position. I am not fluent in fromEulerAngles.

2 answers

✓ Accepted answer

Ummmm.... You use clone?

local clo = game.Workspace.Part:clone()

Clone copies all attributes of a part.

2 comments

0

so sassy c;

0

lol @Goulstem c:

If Shawnyg's answer was not helpful, you just set the properties to the old part's properties:

function partClone(obj)
	local c = obj:Clone()
	c.CFrame = obj.CFrame -- sets rotation and position
	c.Size = obj.Size -- size
	c.Parent = obj.Parent -- puts into the parent of the cloned part
end

partClone(game.Workspace.BasePlate)

3 comments

0

Shawnyg's works perfectly.

0

fight fight fight

0

-_- it was just a foolproof answer gg

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