I have a script to make the sphere move left and right and the script runs through the entire thing with no errors but the ball never actually does anything and just falls down.
local cframeList = {}
local alignPosition = script.Parent.AlignPosition
local a = true
if a == true then
a = false
table.insert(cframeList, script.Parent.Parent.D1.D1A.CFrame)
table.insert(cframeList, script.Parent.Parent.D2.D2A.CFrame)
end
alignPosition.MaxVelocity = 30
platform.AlignOrientation.MaxAngularVelocity = 3
alignPosition.Position = cframeList[1].Position
platform.AlignOrientation.CFrame = cframeList[1].Rotation
platform.Anchored = false
while true do
for i,_ in pairs(cframeList) do
alignPosition.Position = cframeList[i].Position --Im grabbing the first thing out of my cframeList table since i will return an index
platform.AlignOrientation.CFrame = cframeList[i].Rotation
print("here")
task.wait(2)
end
end```