Whenever this runs, I get this.
`18:18:45.775 - Workspace.Fly:11: bad argument #2 to '?' (Vector3 expected, got CFrame)
18:18:45.776 - Stack Begin
18:18:45.777 - Script 'Workspace.Fly', Line 11 - global startLoop
18:18:45.777 - Script 'Workspace.Fly', Line 24
18:18:45.778 - Stack End`
Why is it doing this?
Here is the script.
-- I could've used pairs but I was in a rush
local currentpos = Vector3.new(-5, 0.7, 0)
local parts = game.Workspace.ElectricityObsorber:GetChildren()
game.Workspace.ElectricityObsorber:MoveTo(currentpos)
function startLoop()
wait(10)
for i = 300,0,-1 do
wait(0.01)
for i = 1,#parts do
local cf = parts[i].CFrame
parts[i].CFrame = cf + CFrame.new(0,0,0.5)
end
end
for i = 300,0,-1 do
wait(0.01)
for i = 1,#parts do
parts[i].CFrame = parts[i].CFrame + CFrame.new(0.03,0,1,0.1)
end
end
end
while true do
wait(0.01)
startLoop()
end

2 comments
Add using a Vector, not a CFrame. ie; parts[i].CFrame = cf + Vector3.new(0,0,0.5)
You can't add CFrames.