Hello, so I’m trying to make a script that will clone a pad 10 times and each time add some space between each pad I wrote this script but it’s not working, it gives me this error:
7: invalid argument #3 (CFrame expected, got Vector3)
Here is my script:
local temp = game.ReplicatedStorage:WaitForChild('TemplatePad') wait(10) for i = 1, 10 do local clonedpad = temp:Clone() clonedpad.Parent = script.Parent local pos = Vector3.new(temp.Size.X/2,0,0) + temp.Position clonedpad.CFrame = pos end
How can I do this?