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.
✓ ANSWER ACCEPTED
Cloning and changing the location?
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks