So I'm trying to get my part to go up and down while the script is true (while it is), but the part just sits on top of another part and does nothing.
while true do
script.Parent.Position = Vector3.new(-31.4, -0.985, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.785, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.585, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.385, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.185, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, 0.015, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.185, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.385, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.585, 1.695)
wait(0.0001)
script.Parent.Position = Vector3.new(-31.4, -0.785, 1.695)
wait(0.0001)
end

1 comment
Use CFrame.