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

Cloning and changing the location?

How would I clone a part and change its location to another part. For example I want to clone a part named Package every 5 seconds and when it clones it it should clone at the location of another part named PackageSpawner. I know how to clone it just not how to change the location when it clones.

1 answer

✓ Accepted answer

It would look something like this:

while wait(5) do
	clone = workspace.Package:Clone()
	clone.Parent = workspace.Packages
	clone.CFrame = CFrame.new( workspace.PackageSpawner.Position )
	-- CFrames act simpler than Positions
end

1 comment

0

Thanks

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