local part = script.Parent
local upVector = Vector3.new(0, 0.25, 0)
while true do
wait(2)
if part.Position.Y >= 180 then continue end
part.Position += upVector
end
And all you have to do is change 180 to the maximum Y axis the part can reach before not being allowed to continue.