Hey, I'm new to scripting and I would like to know how you would move a part 5 studs to the right each time it is cloned using a for loop. (basically so it moves 5 studs to the right of the last cloned part's position)
I'm guessing you need to use a return statement to do this?
Here is my current code:
(it clones an object 70 times but in the same position)
local part = game.Workspace.PartToBeCloned
for i = 1, 70 do
local clone = part:Clone()
clone.Parent = game.Workspace
clone.Anchored = true
clone.Position = Vector3.new(0,0,0)
end
